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

Function wcslen

crates/vm/src/stdlib/_wmi.rs:279–287  ·  view source on GitHub ↗
(s: *const u16)

Source from the content-addressed store, hash-verified

277 }
278
279 unsafe fn wcslen(s: *const u16) -> usize {
280 unsafe {
281 let mut len = 0;
282 while *s.add(len) != 0 {
283 len += 1;
284 }
285 len
286 }
287 }
288
289 unsafe fn wait_event(event: HANDLE, timeout: u32) -> u32 {
290 unsafe {

Callers 5

test_wcslenMethod · 0.85
query_thread_implFunction · 0.85
bytes_to_pyobjectFunction · 0.85
valueMethod · 0.85
wstring_at_implFunction · 0.85

Calls 1

addMethod · 0.45

Tested by 1

test_wcslenMethod · 0.68