powered by
This function flushes the internal buffer according to the specified mode.
flush_compressor_buffer(compressorPtr, mode = 4L)
A raw vector containing the flushed output.
A SEXP pointer to an existing compressor object.
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.
compressor <- create_compressor() # ... (some compression actions) flushed_data <- flush_compressor_buffer(compressor)
Run the code above in your browser using DataLab