macro_rules! wide {
($s:expr) => { ... };
}
Expand description
Encodes the input string as a wide string (utf-16) constant.
The type of the returned constant is &'static [u16; LEN]
.
Examples
let expected = &['W' as u16, 'i' as u16, 'd' as u16, 'e' as u16, 0];
assert_eq!(expected, obfstr::wide!("Wide\0"));