Macro const_utf16::encode_null_terminated[][src]

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

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.