| ... | ... | @@ -31,6 +31,7 @@ pub fn ZstandardStream( |
| 31 | 31 | |
| 32 | 32 | pub const Error = ReaderType.Error || error{ |
| 33 | 33 | ChecksumFailure, |
| 34 | DictionaryIdFlagUnsupported, |
| 34 | 35 | MalformedBlock, |
| 35 | 36 | MalformedFrame, |
| 36 | 37 | OutOfMemory, |
| ... | ... | @@ -144,6 +145,7 @@ pub fn ZstandardStream( |
| 144 | 145 | while (self.state == .NewFrame) { |
| 145 | 146 | const initial_count = self.source.bytes_read; |
| 146 | 147 | self.frameInit() catch |err| switch (err) { |
| 148 | error.DictionaryIdFlagUnsupported => return error.DictionaryIdFlagUnsupported, |
| 147 | 149 | error.EndOfStream => return if (self.source.bytes_read == initial_count) |
| 148 | 150 | 0 |
| 149 | 151 | else |