mirror of
https://github.com/google/brotli.git
synced 2024-11-22 11:40:06 +00:00
Make encoder API more safe
Add flag to check if "last" block has been already processed
This commit is contained in:
parent
4cc756ec0a
commit
226d21c403
@ -180,6 +180,8 @@ class BrotliCompressor {
|
||||
// Command and literal buffers for quality 1.
|
||||
uint32_t* command_buf_;
|
||||
uint8_t* literal_buf_;
|
||||
|
||||
int is_last_block_emitted_;
|
||||
};
|
||||
|
||||
// Compresses the data in input_buffer into encoded_buffer, and sets
|
||||
|
Loading…
Reference in New Issue
Block a user