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

Function to_wide_null

resources/dism_dsc/src/dism.rs:135–140  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

133}
134
135fn to_wide_null(s: &str) -> Vec<u16> {
136 std::ffi::OsStr::new(s)
137 .encode_wide()
138 .chain(std::iter::once(0))
139 .collect()
140}
141
142unsafe fn from_wide_ptr(ptr: *const u16) -> String {
143 if ptr.is_null() {

Callers 8

loadMethod · 0.85
openMethod · 0.85
get_feature_infoMethod · 0.85
enable_featureMethod · 0.85
disable_featureMethod · 0.85
get_capability_infoMethod · 0.85
add_capabilityMethod · 0.85
remove_capabilityMethod · 0.85

Calls 1

newFunction · 0.50

Tested by

no test coverage detected