[][src]Function opensc_sys::list_attributes_serializer

pub unsafe extern "C" fn list_attributes_serializer(
    l: *mut list_t,
    serializer_fun: element_serializer
) -> c_int

set the element serializer function for the list elements.

[ advanced preference ]

Serialize functions are used for dumping the list to some persistent storage. The serializer function is called for each element; it is passed a reference to the element and a reference to a size_t object. It will provide (and return) the buffer with the serialization of the element and fill the size_t object with the length of this serialization data.

@param l list to operate @param serializer_fun pointer to the actual serializer function @return 0 if the attribute was successfully set; -1 otherwise

@see element_serializer() @see list_dump_filedescriptor() @see list_restore_filedescriptor()