Home
last modified time | relevance | path

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

/openbmc/linux/rust/kernel/
H A 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()
/openbmc/qemu/rust/qemu-api/src/
H A Ddevice_class.rs72 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_DEVICE) };
74 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_SYS_BUS_DEVICE) };
H A Dc_str.rs30 unsafe { std::ffi::CStr::from_bytes_with_nul_unchecked(BYTES) }