flush_compressor_buffer: Flush the internal buffer of the compressor object.

View source: R/RcppExports.R

flush_compressor_bufferR 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)

zlib documentation built on Oct. 19, 2023, 1:13 a.m.