We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e32f4 commit 9463a11Copy full SHA for 9463a11
src/stream.rs
@@ -81,6 +81,9 @@ impl CompressStream {
81
Some(input) => {
82
let op = BrotliEncoderOperation::BROTLI_OPERATION_PROCESS;
83
let mut available_in = input.len();
84
+ // `BrotliEncoderCompressStream` does not return a `BrotliResult` but returns a boolean,
85
+ // which is different from `BrotliDecompressStream`.
86
+ // But the requirement for input/output buf is common so we reused `BrotliStreamResult` to report it.
87
let ret = BrotliEncoderCompressStream(
88
&mut self.state,
89
op,
0 commit comments