mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 07:03:11 +00:00
Use readStreaming, not readPositional, for streaming file readVec on Windows
This commit is contained in:
parent
409b194d6d
commit
e24d13cae7
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user