MCPcopy Create free account
hub / github.com/PowerShell/DSC / new

Method new

archive/ntreg/src/lib.rs:28–32  ·  view source on GitHub ↗
(string: &str)

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 1

as_unicode_stringMethod · 0.80

Tested by

no test coverage detected