Function gnunet_sys::GNUNET_CONTAINER_meta_data_serialize[][src]

pub unsafe extern "C" fn GNUNET_CONTAINER_meta_data_serialize(
    md: *const GNUNET_CONTAINER_MetaData,
    target: *mut *mut c_char,
    max: usize,
    opt: GNUNET_CONTAINER_MetaDataSerializationOptions
) -> isize

@ingroup metadata Serialize meta-data to target.

@param md metadata to serialize @param target where to write the serialized metadata; *target can be NULL, in which case memory is allocated @param max maximum number of bytes available @param opt is it ok to just write SOME of the meta-data to match the size constraint, possibly discarding some data? @return number of bytes written on success, -1 on error (typically: not enough space)