Function gnunet_sys::GNUNET_buffer_reap[][src]

pub unsafe extern "C" fn GNUNET_buffer_reap(
    buf: *mut GNUNET_Buffer,
    size: *mut usize
) -> *mut c_void

Clear the buffer and return its contents. The caller is responsible to eventually #GNUNET_free the returned data.

@param buf the buffer to reap the contents from @param size where to store the size of the returned data @returns the data contained in the string