| ... | @@ -1283,11 +1283,10 @@ pub const Stream = struct { | ... | @@ -1283,11 +1283,10 @@ pub const Stream = struct { |
| 1283 | /// This is a low-level API that calls the `Io` interface function directly. | 1283 | /// This is a low-level API that calls the `Io` interface function directly. |
| 1284 | /// For a higher level API, see `reader`. | 1284 | /// For a higher level API, see `reader`. |
| 1285 | pub fn read(s: *const Stream, io: Io, data: [][]u8) Reader.Error!usize { | 1285 | pub fn read(s: *const Stream, io: Io, data: [][]u8) Reader.Error!usize { |
| 1286 | const rc, _ = try (try io.operate(.{ .net_read = .{ | 1286 | return (try (try io.operate(.{ .net_read = .{ |
| 1287 | .socket_handle = s.socket.handle, | 1287 | .socket_handle = s.socket.handle, |
| 1288 | .data = data, | 1288 | .data = data, |
| 1289 | } })).net_read; | 1289 | } })).net_read).data_len; |
| 1290 | return rc; | | |
| 1291 | } | 1290 | } |
| 1292 | | 1291 | |
| 1293 | /// Read with control data. | 1292 | /// Read with control data. |