ZL_Compressor_registerTypedEncoder2

Function ZL_Compressor_registerTypedEncoder2 

Source
pub unsafe extern "C" fn ZL_Compressor_registerTypedEncoder2(
    compressor: *mut ZL_Compressor,
    desc: *const ZL_TypedEncoderDesc,
) -> ZL_Result_ZL_NodeID
Expand description

Register a custom encoder that can be used to compress.

@note This is a new variant of @ref ZL_Compressor_registerTypedEncoder that reports errors using OpenZL’s ZL_Report error system.

@warning Using a custom encoder requires the decoder to be registered before decompression.

@param desc The description of the encoder.

@returns The new node ID, or an error.