We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9f9cd4 commit 3e5ccf0Copy full SHA for 3e5ccf0
1 file changed
Sources/ByteReader.swift
@@ -37,7 +37,7 @@ public class ByteReader {
37
public var bytesLeft: Int {
38
#if swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))
39
return { (data: Data, offset: Int) -> Int in
40
- self.data.endIndex - self.offset
+ return data.endIndex - offset
41
} (self.data, self.offset)
42
#else
43
return self.data.endIndex - self.offset
0 commit comments