Home
last modified time | relevance | path

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

/linux-6.6.21/rust/kernel/
Dstr.rs106 unsafe { Self::from_bytes_with_nul_unchecked(bytes) } in from_char_ptr()
130 Ok(unsafe { Self::from_bytes_with_nul_unchecked(bytes) }) in from_bytes_with_nul()
141 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked() method
296 unsafe { Self::from_bytes_with_nul_unchecked(&self.0[index.start..]) } in index()
592 unsafe { CStr::from_bytes_with_nul_unchecked(self.buf.as_slice()) } in deref()