MCPcopy Index your code
hub / github.com/b1tg/rust-windows-shellcode / u16_ptr_len

Function u16_ptr_len

shellcode/src/utils.rs:4–7  ·  view source on GitHub ↗
(ptr: *const u16)

Source from the content-addressed store, hash-verified

2
3
4unsafe 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
9fn compare_str_u16(s: &str, u: *const u16) -> bool {
10 unsafe {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected