Function hyper::ffi::hyper_buf_copy
source · [−]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.
This returns NULL
if allocating a new buffer fails.