Function gnunet_sys::GNUNET_STRINGS_data_to_string[][src]

pub unsafe extern "C" fn GNUNET_STRINGS_data_to_string(
    data: *const c_void,
    size: usize,
    out: *mut c_char,
    out_size: usize
) -> *mut c_char

Convert binary data to ASCII encoding using CrockfordBase32. Does not append 0-terminator, but returns a pointer to the place where it should be placed, if needed.

@param data data to encode @param size size of data (in bytes) @param out buffer to fill @param out_size size of the buffer. Must be large enough to hold ((size8) + (((size8) % 5) > 0 ? 5 - ((size*8) % 5) : 0)) / 5 @return pointer to the next byte in ‘out’ or NULL on error.