Function gnunet_sys::GNUNET_STRINGS_data_to_string_alloc[][src]

pub unsafe extern "C" fn GNUNET_STRINGS_data_to_string_alloc(
    buf: *const c_void,
    size: usize
) -> *mut c_char

Return the base32crockford encoding of the given buffer.

The returned string will be freshly allocated, and must be free’d with #GNUNET_free().

@param buf buffer with data @param size size of the buffer @a buf @return freshly allocated, null-terminated string