Function gnunet_sys::GNUNET_buffer_write_data_encoded[][src]

pub unsafe extern "C" fn GNUNET_buffer_write_data_encoded(
    buf: *mut GNUNET_Buffer,
    data: *const c_void,
    data_len: usize
)

Write data encoded via #GNUNET_STRINGS_data_to_string to the buffer.

Grows the buffer if necessary.

@param buf buffer to write to @param data data to read from @param data_len number of bytes to copy from @a data to @a buf