[][src]Type Definition opensc_sys::element_unserializer

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

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