ZL_ReflectionCtx

Type Alias ZL_ReflectionCtx 

Source
pub type ZL_ReflectionCtx = ZL_ReflectionCtx_s;
Expand description

Reflection API for introspecting a compressed frame.

  1. Create a reflection context with ZL_ReflectionCtx_create().
  2. Register the transforms used in the frame with ZL_ReflectionCtx_registerTypedDecoder() and friends.
  3. Set the compressed frame to process with ZL_ReflectionCtx_setCompressedFrame().
  4. Get the information you need with the various ZS2_ReflectionCtx_get*()
  5. 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 */ }