Function gnunet_sys::GNUNET_BIO_read_open_buffer [−][src]
pub unsafe extern "C" fn GNUNET_BIO_read_open_buffer(
buffer: *mut c_void,
size: usize
) -> *mut GNUNET_BIO_ReadHandle
Create a handle from an existing allocated buffer.
@param buffer the buffer to use as source @param size the total size in bytes of the buffer @return IO handle on success, NULL on error