Function hyper::ffi::hyper_buf_copy [−][src]
#[no_mangle]
pub extern "C" fn hyper_buf_copy(
buf: *const u8,
len: size_t
) -> *mut hyper_buf
Expand description
Create a new hyper_buf *
by copying the provided bytes.
This makes an owned copy of the bytes, so the buf
argument can be
freed or changed afterwards.