pub fn trim_nuls(buf: &[u8]) -> &[u8] ⓘ
Trims trailing NUL bytes while preserving parity for UTF-16 character boundaries. Ported from trim_nuls in ascmagic.c.
trim_nuls
ascmagic.c