macro_rules! encode_null_terminated { ($s:expr) => { ... }; }
Encode a &str as a utf16 buffer with a terminating null byte
This function panics if called with a string that contains any null bytes.