| ... | ... | @@ -306,10 +306,10 @@ pub fn Inflate(comptime container: Container, comptime ReaderType: type) type { |
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | /// Returns decompressed data from internal sliding window buffer. |
| 309 | | /// Returned buffer can be any length between 0 and `limit` bytes. |
| 310 | | /// 0 returned bytes means end of stream reached. |
| 311 | | /// With limit=0 returns as much data can. It newer will be more |
| 312 | | /// than 65536 bytes, which is limit of internal buffer. |
| 309 | /// Returned buffer can be any length between 0 and `limit` bytes. 0 |
| 310 | /// returned bytes means end of stream reached. With limit=0 returns as |
| 311 | /// much data it can. It newer will be more than 65536 bytes, which is |
| 312 | /// size of internal buffer. |
| 313 | 313 | pub fn get(self: *Self, limit: usize) Error![]const u8 { |
| 314 | 314 | while (true) { |
| 315 | 315 | const out = self.hist.readAtMost(limit); |