encode_null_terminated

Macro encode_null_terminated 

Source
macro_rules! encode_null_terminated {
    ($s:expr) => { ... };
}
Expand description

Encode a &str as a utf16 buffer with a terminating null byte

ยงPanics

This function panics if called with a string that contains any null bytes.