(ptr: *const u16)
| 2 | |
| 3 | |
| 4 | unsafe fn u16_ptr_len(ptr: *const u16) -> usize { |
| 5 | let len = (0..).take_while(|&i| *ptr.offset(i) != 0).count(); |
| 6 | return len; |
| 7 | } |
| 8 | |
| 9 | fn compare_str_u16(s: &str, u: *const u16) -> bool { |
| 10 | unsafe { |
nothing calls this directly
no outgoing calls
no test coverage detected