Function gnunet_sys::GNUNET_BIO_get_buffer_contents[][src]

pub unsafe extern "C" fn GNUNET_BIO_get_buffer_contents(
    h: *mut GNUNET_BIO_WriteHandle,
    emsg: *mut *mut c_char,
    contents: *mut *mut c_void,
    size: *mut usize
) -> c_int

Get the IO handle’s contents. If the handle doesn’t use an in-memory buffer, this function returns #GNUNET_SYSERR.

@param h the IO handle @param emsg set to the (allocated) error message if the handle has an error message the return value is #GNUNET_SYSERR @param contents where to store the pointer to the handle’s contents @param size where to store the size of @e contents @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise