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