(s: &str)
| 133 | } |
| 134 | |
| 135 | fn 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 | |
| 142 | unsafe fn from_wide_ptr(ptr: *const u16) -> String { |
| 143 | if ptr.is_null() { |
no test coverage detected