(string: &str)
| 26 | /// * `string` - The string to create the `UnicodeString` from. |
| 27 | #[must_use] |
| 28 | pub fn new(string: &str) -> UnicodeString { |
| 29 | let mut buffer: Vec<u16> = string.encode_utf16().collect(); |
| 30 | buffer.push(0); |
| 31 | UnicodeString { buffer } |
| 32 | } |
| 33 | |
| 34 | /// Get the `UNICODE_STRING` representation of the buffer. |
| 35 | /// |
nothing calls this directly
no test coverage detected