flush_compressor_buffer {zlib} | R Documentation |
Flush the internal buffer of the compressor object.
Description
This function flushes the internal buffer according to the specified mode.
Usage
flush_compressor_buffer(compressorPtr, mode = 4L)
Arguments
compressorPtr |
A SEXP pointer to an existing compressor object. |
mode |
A compression flush mode. Default is Z_FINISH. Available modes are Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_BLOCK, and Z_FINISH. |
Value
A raw vector containing the flushed output.
Examples
compressor <- create_compressor()
# ... (some compression actions)
flushed_data <- flush_compressor_buffer(compressor)
[Package zlib version 1.0.3 Index]