pub type ZL_ReflectionCtx = ZL_ReflectionCtx_s;Expand description
Reflection API for introspecting a compressed frame.
- Create a reflection context with ZL_ReflectionCtx_create().
- Register the transforms used in the frame with ZL_ReflectionCtx_registerTypedDecoder() and friends.
- Set the compressed frame to process with ZL_ReflectionCtx_setCompressedFrame().
- Get the information you need with the various ZS2_ReflectionCtx_get*()
- Free the context with ZL_ReflectionCtx_free().
NOTE: This API is guaranteed to be safe on corrupted input. WARNING: Logic errors in the API usage will crash the process. For example trying to call any getter (e.g. ZL_ReflectionCtx_getNumStreams_lastChunk()) before calling ZL_ReflectionCtx_setCompressedFrame() and getting a successful return code.
Aliased Typeยง
pub struct ZL_ReflectionCtx { /* private fields */ }