Home
last modified time | relevance | path

Searched refs:checked_cstr (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/rust/kernel/
Dstr.rs364 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_to_str() localVariable
365 let checked_str = checked_cstr.to_str().unwrap(); in test_cstr_to_str()
373 let checked_cstr = CStr::from_bytes_with_nul(bad_bytes).unwrap(); in test_cstr_to_str_panic() localVariable
374 checked_cstr.to_str().unwrap(); in test_cstr_to_str_panic()
380 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_as_str_unchecked() localVariable
381 let unchecked_str = unsafe { checked_cstr.as_str_unchecked() }; in test_cstr_as_str_unchecked()