ZL_TypedBuffer_createWrapStruct

Function ZL_TypedBuffer_createWrapStruct 

Source
pub unsafe extern "C" fn ZL_TypedBuffer_createWrapStruct(
    structBuffer: *mut c_void,
    structWidth: usize,
    numStructs: usize,
) -> *mut ZL_TypedBuffer
Expand description

@brief Creates a pre-allocated typed buffer for struct data.

@param structBuffer buffer to write struct into. Its size must be at least @p structWidth * @p structCapacity @param structWidth Width of each struct in bytes @param structCapacity Maximum number of struct that can be written into @p structBuffer @return Pointer to wrapped typed buffer, or NULL on error