diff --git a/Sources/CSVaquita/BufferedStream.swift b/Sources/CSVaquita/BufferedStream.swift index 210de0a..ab96e68 100644 --- a/Sources/CSVaquita/BufferedStream.swift +++ b/Sources/CSVaquita/BufferedStream.swift @@ -73,7 +73,7 @@ public final class BufferedStream { let available = min(n, end - pos) if available > 0 { pos += available - return Array(buf[pos..<(pos + available)]) + return Array(buf[(pos - available)..