pub unsafe fn set_header<'a>(
stream: &mut DeflateStream<'a>,
head: Option<&'a mut gz_header>,
) -> ReturnCodeExpand description
ยงSafety
The caller must guarantee:
- If
headisSomehead.extraisNULLor is readable for at leasthead.extra_lenbyteshead.nameisNULLor satisfies the requirements ofcore::ffi::CStr::from_ptrhead.commentisNULLor satisfies the requirements ofcore::ffi::CStr::from_ptr