Type Alias element_unserializer

Source
pub type element_unserializer = Option<unsafe extern "C" fn(data: *const c_void, data_len: *mut u32) -> *mut c_void>;
Expand description

a function for un-serializing an element.

An unserializer function accomplishes the inverse operation of the serializer function. An unserializer function is one that gets a serialized representation of an element and turns it backe to the original element. The serialized representation is passed as a reference to a buffer with its data, and the function allocates and returns the buffer containing the original element, and it sets the length of this buffer into the integer passed by reference.

@param data reference to the buffer with the serialized representation of the element @param data_len reference to the location where to store the length of the data in the buffer returned @return reference to a buffer with the original, unserialized representation of the element

Aliased Type§

enum element_unserializer {
    None,
    Some(unsafe extern "C" fn(_: *const c_void, _: *mut u32) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const c_void, _: *mut u32) -> *mut c_void)

Some value of type T.