ZL_CCtx_refCompressor

Function ZL_CCtx_refCompressor 

Source
pub unsafe extern "C" fn ZL_CCtx_refCompressor(
    cctx: *mut ZL_CCtx,
    compressor: *const ZL_Compressor,
) -> ZL_Report
Expand description

@brief Pass @p compressor as a ZL_Compressor* object to the compression state. Compression will start with the default Starting GraphID of @p compressor, using its default parameters provided at registration time. @note Only one compressor can be referenced at a time. Referencing a new compressor deletes previous reference. @note If a custom GraphID and parameters were previously set, invoking this method will reset them to default. @pre @p compressor must remain valid for the duration of its usage. @pre @p compressor must be already validated.