pub fn host_c_str_to_bytes(host: &CStr) -> Cow<'_, [u8]>
Convert an &CStr produced by POSIX-style APIs into a Cow<[u8]> which is either plain UTF-8 or an ARF encoding.
&CStr
Cow<[u8]>