Make encoder API more safe

Add flag to check if "last" block has been already processed
This commit is contained in:
eustas 2016-05-18 11:01:16 +02:00
parent 4cc756ec0a
commit 226d21c403

View File

@ -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