| ... | @@ -92,6 +92,7 @@ const indirect_vtable: Reader.VTable = .{ | ... | @@ -92,6 +92,7 @@ const indirect_vtable: Reader.VTable = .{ |
| 92 | /// | 92 | /// |
| 93 | /// Otherwise, `buffer` has those requirements. | 93 | /// Otherwise, `buffer` has those requirements. |
| 94 | pub fn init(input: *Reader, buffer: []u8, options: Options) Decompress { | 94 | pub fn init(input: *Reader, buffer: []u8, options: Options) Decompress { |
| | 95 | if (buffer.len != 0) assert(buffer.len >= options.window_len + zstd.block_size_max); |
| 95 | return .{ | 96 | return .{ |
| 96 | .input = input, | 97 | .input = input, |
| 97 | .state = .new_frame, | 98 | .state = .new_frame, |