Function tartan_uefi::io::encode_c_utf16

source ยท
pub fn encode_c_utf16(string: &str) -> Box<[u16]>
Expand description

Convert a Rust string to a buffer containing a null-terminated UTF-16 string. Requires dynamic memory allocation.