mirror of
https://github.com/google/brotli.git
synced 2026-09-23 23:24:59 +00:00
BROTLI_OPERATION_FLUSH and BROTLI_OPERATION_PROCESS related #436
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @liwenzha on GitHub (Oct 20, 2022).
I want use the brotli compress with python, but I find in the BrotliCompress\brotli\python\ _brotli.cc, when the BrotliEncoderOperation is set to BROTLI_OPERATION_FLUSH, there is no input string as an argument.
BROTLI_OPERATION_PROCESS
BROTLI_OPERATION_FLUSH
I want to know what is the difference when BrotliEncoderOperation is set to BROTLI_OPERATION_FLUSH and BROTLI_OPERATION_PROCESS when compressing data?
@eustas commented on GitHub (Dec 29, 2022):
"Flush" is used to force emitting compressed block. It is not certain how much data is produced to finish block -> "flush" request should be repeated until there is no more output produced. And that is why "flush" does not accept more input make the workflow states clear.