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

Method as_struct

archive/ntreg/src/lib.rs:41–47  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

39 ///
40 #[must_use]
41 pub fn as_struct(&self) -> UNICODE_STRING {
42 UNICODE_STRING {
43 Length: ((self.buffer.len() - 1) * 2) as u16,
44 MaximumLength: (self.buffer.len() * 2) as u16,
45 Buffer: self.buffer.as_ptr() as *mut u16,
46 }
47 }
48}
49
50trait AsUnicodeString {

Callers 5

create_key_helperMethod · 0.80
delete_valueMethod · 0.80
set_valueMethod · 0.80
open_keyFunction · 0.80
queryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected