Use readStreaming, not readPositional, for streaming file readVec on Windows

This commit is contained in:
Carl Åstholm 2025-08-20 14:45:22 +02:00 committed by Alex Rønne Petersen
parent 409b194d6d
commit e24d13cae7
No known key found for this signature in database

View File

@ -1398,9 +1398,9 @@ pub const Reader = struct {
}
const first = data[0];
if (first.len >= io_reader.buffer.len - io_reader.end) {
return readPositional(r, first);
return readStreaming(r, first);
} else {
io_reader.end += try readPositional(r, io_reader.buffer[io_reader.end..]);
io_reader.end += try readStreaming(r, io_reader.buffer[io_reader.end..]);
return 0;
}
}