pub unsafe fn set_header<'a>(
stream: &mut DeflateStream<'a>,
head: Option<&'a mut gz_header>,
) -> ReturnCode
Expand description
ยงSafety
The caller must guarantee:
- If
head
isSome
head.extra
isNULL
or is readable for at leasthead.extra_len
byteshead.name
isNULL
or satisfies the requirements ofcore::ffi::CStr::from_ptr
head.comment
isNULL
or satisfies the requirements ofcore::ffi::CStr::from_ptr