Learn R Programming

zlib (version 1.0.3)

flush_compressor_buffer: 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)

Value

A raw vector containing the flushed output.

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.

Examples

Run this code
compressor <- create_compressor()
# ... (some compression actions)
flushed_data <- flush_compressor_buffer(compressor)

Run the code above in your browser using DataLab