ZL_TypedRef_createString

Function ZL_TypedRef_createString 

Source
pub unsafe extern "C" fn ZL_TypedRef_createString(
    strBuffer: *const c_void,
    bufferSize: usize,
    strLens: *const u32,
    nbStrings: usize,
) -> *mut ZL_TypedRef
Expand description

Creates a ZL_TypedRef referencing a “flat-strings” representation. All “strings” are concatenated into @p strBuffer and their lengths are stored in a @p strLens array.

@param strBuffer The data buffer @param bufferSize The size of the data buffer @param strLengths The lengths array @param nbStrings The number of strings (i.e. the size of the lengths array)

@note String is just short-hand for variable-size-fields. It’s not limited to null-terminated ascii strings. A string can be any blob of bytes, including some containing 0-value bytes, because length is explicit.