You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: syscall_resolve.rs
    path of file: ./repos/rust_syscalls/src
    
    the code of the file until where you have to start completion: use std::ptr::addr_of;
use std::arch::asm;

use core::slice;

use ntapi::ntldr::PLDR_DATA_T
    
pub fn get_cstr_len(pointer: *const char) -> usize{
    let mut tmp: u64 = pointer as u64;
    unsafe {
        while *(tmp as *const u8) != 0{
            tmp += 1;
        }
    }
    (tmp - pointer as u64) as _
}