ZL_TypedRef_createStruct

Function ZL_TypedRef_createStruct 

Source
pub unsafe extern "C" fn ZL_TypedRef_createStruct(
    start: *const c_void,
    structWidth: usize,
    structCount: usize,
) -> *mut ZL_TypedRef
Expand description

Creates a ZL_TypedRef that represents a concatenated list of fields of a fixed size of @p structWidth.

@p structWidth can be any size > 0. Even odd sizes (13, 17, etc.) are allowed. All fields are considered concatenated back to back. There is no alignment requirement.

@param start The start of the reference buffer @param structWidth The width of each element in the reference buffer. @param structCount The number of elements in the input buffer. The total size will be @p structWidth * @p structCount.

@note Struct in this case is just short-hand for fixed-size-fields. It’s not limited to C-style structures.