We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f76d17 commit 3668829Copy full SHA for 3668829
1 file changed
Sources/ByteReader.swift
@@ -12,7 +12,7 @@ public class ByteReader {
12
public var offset: Int
13
14
public var isFinished: Bool {
15
- return self.data.endIndex == self.offset
+ return self.data.endIndex <= self.offset
16
}
17
18
public init(data: Data) {
0 commit comments