Home
last modified time | relevance | path

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

/linux-6.15/rust/kernel/
H A Dstr.rs243 unsafe { Self::from_bytes_with_nul_unchecked(bytes) } in from_char_ptr()
267 Ok(unsafe { Self::from_bytes_with_nul_unchecked(bytes) }) in from_bytes_with_nul()
278 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked() method
514 unsafe { Self::from_bytes_with_nul_unchecked(&self.0[index.start..]) } in index()
912 unsafe { CStr::from_bytes_with_nul_unchecked(self.buf.as_slice()) } in deref()