MCPcopy Index your code
hub / github.com/RustPython/RustPython / from_wides_until_nul

Method from_wides_until_nul

crates/common/src/windows.rs:52–55  ·  view source on GitHub ↗
(wide: &[u16])

Source from the content-addressed store, hash-verified

50}
51impl FromWideString for OsString {
52 fn from_wides_until_nul(wide: &[u16]) -> OsString {
53 let len = wide.iter().take_while(|&&c| c != 0).count();
54 OsString::from_wide(&wide[..len])
55 }
56}

Callers

nothing calls this directly

Calls 2

countMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected