| ... | @@ -30,7 +30,7 @@ pub fn Reader( | ... | @@ -30,7 +30,7 @@ pub fn Reader( |
| 30 | /// means the stream reached the end. Reaching the end of a stream is not an error | 30 | /// means the stream reached the end. Reaching the end of a stream is not an error |
| 31 | /// condition. | 31 | /// condition. |
| 32 | pub fn readAll(self: Self, buffer: []u8) Error!usize { | 32 | pub fn readAll(self: Self, buffer: []u8) Error!usize { |
| 33 | return readAtLeast(self, buffer, 1); | 33 | return readAtLeast(self, buffer, buffer.len); |
| 34 | } | 34 | } |
| 35 | | 35 | |
| 36 | /// Returns the number of bytes read, calling the underlying read | 36 | /// Returns the number of bytes read, calling the underlying read |