Skip to content

Commit 3668829

Browse files
committed
ByteReader.isFinished is now true if offset is at any position after last byte
1 parent 7f76d17 commit 3668829

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/ByteReader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class ByteReader {
1212
public var offset: Int
1313

1414
public var isFinished: Bool {
15-
return self.data.endIndex == self.offset
15+
return self.data.endIndex <= self.offset
1616
}
1717

1818
public init(data: Data) {

0 commit comments

Comments
 (0)