| ... | ... | @@ -6400,6 +6400,7 @@ fn fileReadStreamingPosix(userdata: ?*anyopaque, file: File, data: []const []u8) |
| 6400 | 6400 | i += 1; |
| 6401 | 6401 | } |
| 6402 | 6402 | } |
| 6403 | if (i == 0) return 0; |
| 6403 | 6404 | const dest = iovecs_buffer[0..i]; |
| 6404 | 6405 | assert(dest[0].len > 0); |
| 6405 | 6406 | |
| ... | ... | @@ -6482,6 +6483,7 @@ fn fileReadStreamingWindows(userdata: ?*anyopaque, file: File, data: []const []u |
| 6482 | 6483 | const DWORD = windows.DWORD; |
| 6483 | 6484 | var index: usize = 0; |
| 6484 | 6485 | while (data[index].len == 0) index += 1; |
| 6486 | if (index == 0) return 0; |
| 6485 | 6487 | const buffer = data[index]; |
| 6486 | 6488 | const want_read_count: DWORD = @min(std.math.maxInt(DWORD), buffer.len); |
| 6487 | 6489 | |
| ... | ... | @@ -6519,6 +6521,7 @@ fn fileReadPositionalPosix(userdata: ?*anyopaque, file: File, data: []const []u8 |
| 6519 | 6521 | i += 1; |
| 6520 | 6522 | } |
| 6521 | 6523 | } |
| 6524 | if (i == 0) return 0; |
| 6522 | 6525 | const dest = iovecs_buffer[0..i]; |
| 6523 | 6526 | assert(dest[0].len > 0); |
| 6524 | 6527 | |
| ... | ... | @@ -6614,6 +6617,7 @@ fn fileReadPositionalWindows(userdata: ?*anyopaque, file: File, data: []const [] |
| 6614 | 6617 | |
| 6615 | 6618 | var index: usize = 0; |
| 6616 | 6619 | while (data[index].len == 0) index += 1; |
| 6620 | if (index == 0) return 0; |
| 6617 | 6621 | const buffer = data[index]; |
| 6618 | 6622 | const want_read_count: DWORD = @min(std.math.maxInt(DWORD), buffer.len); |
| 6619 | 6623 | |