ZL_CompressIntrospectionHooks_s

Struct ZL_CompressIntrospectionHooks_s 

Source
#[repr(C)]
pub struct ZL_CompressIntrospectionHooks_s {
Show 13 fields pub opaque: *mut c_void, pub on_ZL_Encoder_getScratchSpace: Option<unsafe extern "C" fn(opaque: *mut c_void, ei: *mut ZL_Encoder, size: usize)>, pub on_ZL_Encoder_sendCodecHeader: Option<unsafe extern "C" fn(opaque: *mut c_void, eictx: *mut ZL_Encoder, trh: *const c_void, trhSize: usize)>, pub on_ZL_Encoder_createTypedStream: Option<unsafe extern "C" fn(opaque: *mut c_void, eic: *mut ZL_Encoder, outStreamIndex: c_int, eltsCapacity: usize, eltWidth: usize, createdStream: *mut ZL_Output)>, pub on_ZL_Graph_getScratchSpace: Option<unsafe extern "C" fn(opaque: *mut c_void, gctx: *mut ZL_Graph, size: usize)>, pub on_ZL_Edge_setMultiInputDestination_wParams: Option<unsafe extern "C" fn(opaque: *mut c_void, gctx: *mut ZL_Graph, inputs: *mut *mut ZL_Edge, nbInputs: usize, gid: ZL_GraphID, lparams: *const ZL_LocalParams)>, pub on_migraphEncode_start: Option<unsafe extern "C" fn(opaque: *mut c_void, gctx: *mut ZL_Graph, compressor: *const ZL_Compressor, gid: ZL_GraphID, inputs: *mut *mut ZL_Edge, nbInputs: usize)>, pub on_migraphEncode_end: Option<unsafe extern "C" fn(opaque: *mut c_void, arg1: *mut ZL_Graph, successorGraphs: *mut ZL_GraphID, nbSuccessors: usize, graphExecResult: ZL_Report)>, pub on_codecEncode_start: Option<unsafe extern "C" fn(opaque: *mut c_void, eictx: *mut ZL_Encoder, compressor: *const ZL_Compressor, nid: ZL_NodeID, inStreams: *mut *const ZL_Input, nbInStreams: usize)>, pub on_codecEncode_end: Option<unsafe extern "C" fn(opaque: *mut c_void, arg1: *mut ZL_Encoder, outStreams: *mut *const ZL_Output, nbOutputs: usize, codecExecResult: ZL_Report)>, pub on_cctx_convertOneInput: Option<unsafe extern "C" fn(opque: *mut c_void, cctx: *const ZL_CCtx, input: *const ZL_Data, inType: ZL_Type, portTypeMask: ZL_Type, conversionResult: ZL_Report)>, pub on_ZL_CCtx_compressMultiTypedRef_start: Option<unsafe extern "C" fn(opaque: *mut c_void, cctx: *const ZL_CCtx, dst: *const c_void, dstCapacity: usize, inputs: *const *const ZL_TypedRef, nbInputs: usize)>, pub on_ZL_CCtx_compressMultiTypedRef_end: Option<unsafe extern "C" fn(opaque: *mut c_void, cctx: *const ZL_CCtx, result: ZL_Report)>,
}

Fields§

§opaque: *mut c_void§on_ZL_Encoder_getScratchSpace: Option<unsafe extern "C" fn(opaque: *mut c_void, ei: *mut ZL_Encoder, size: usize)>§on_ZL_Encoder_sendCodecHeader: Option<unsafe extern "C" fn(opaque: *mut c_void, eictx: *mut ZL_Encoder, trh: *const c_void, trhSize: usize)>§on_ZL_Encoder_createTypedStream: Option<unsafe extern "C" fn(opaque: *mut c_void, eic: *mut ZL_Encoder, outStreamIndex: c_int, eltsCapacity: usize, eltWidth: usize, createdStream: *mut ZL_Output)>§on_ZL_Graph_getScratchSpace: Option<unsafe extern "C" fn(opaque: *mut c_void, gctx: *mut ZL_Graph, size: usize)>§on_ZL_Edge_setMultiInputDestination_wParams: Option<unsafe extern "C" fn(opaque: *mut c_void, gctx: *mut ZL_Graph, inputs: *mut *mut ZL_Edge, nbInputs: usize, gid: ZL_GraphID, lparams: *const ZL_LocalParams)>§on_migraphEncode_start: Option<unsafe extern "C" fn(opaque: *mut c_void, gctx: *mut ZL_Graph, compressor: *const ZL_Compressor, gid: ZL_GraphID, inputs: *mut *mut ZL_Edge, nbInputs: usize)>§on_migraphEncode_end: Option<unsafe extern "C" fn(opaque: *mut c_void, arg1: *mut ZL_Graph, successorGraphs: *mut ZL_GraphID, nbSuccessors: usize, graphExecResult: ZL_Report)>§on_codecEncode_start: Option<unsafe extern "C" fn(opaque: *mut c_void, eictx: *mut ZL_Encoder, compressor: *const ZL_Compressor, nid: ZL_NodeID, inStreams: *mut *const ZL_Input, nbInStreams: usize)>§on_codecEncode_end: Option<unsafe extern "C" fn(opaque: *mut c_void, arg1: *mut ZL_Encoder, outStreams: *mut *const ZL_Output, nbOutputs: usize, codecExecResult: ZL_Report)>§on_cctx_convertOneInput: Option<unsafe extern "C" fn(opque: *mut c_void, cctx: *const ZL_CCtx, input: *const ZL_Data, inType: ZL_Type, portTypeMask: ZL_Type, conversionResult: ZL_Report)>§on_ZL_CCtx_compressMultiTypedRef_start: Option<unsafe extern "C" fn(opaque: *mut c_void, cctx: *const ZL_CCtx, dst: *const c_void, dstCapacity: usize, inputs: *const *const ZL_TypedRef, nbInputs: usize)>§on_ZL_CCtx_compressMultiTypedRef_end: Option<unsafe extern "C" fn(opaque: *mut c_void, cctx: *const ZL_CCtx, result: ZL_Report)>

Trait Implementations§

Source§

impl Clone for ZL_CompressIntrospectionHooks_s

Source§

fn clone(&self) -> ZL_CompressIntrospectionHooks_s

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ZL_CompressIntrospectionHooks_s

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for ZL_CompressIntrospectionHooks_s

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.