[−][src]Function opensc_sys::list_attributes_unserializer
pub unsafe extern "C" fn list_attributes_unserializer(
l: *mut list_t,
unserializer_fun: element_unserializer
) -> c_int
set the element unserializer function for the list elements.
[ advanced preference ]
Unserialize functions are used for restoring the list from some persistent storage. The unserializer function is called for each element segment read from the storage; it is passed the segment and a reference to an integer. It shall allocate and return a buffer compiled with the resumed memory representation of the element, and set the integer value to the length of this buffer.
@param l list to operate @param unserializer_fun pointer to the actual unserializer function @return 0 if the attribute was successfully set; -1 otherwise
@see element_unserializer() @see list_dump_filedescriptor() @see list_restore_filedescriptor()