Searched refs:from_bytes_with_nul_unchecked (Results 1 – 3 of 3) sorted by relevance
106 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() method296 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()
72 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_DEVICE) };74 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_SYS_BUS_DEVICE) };
30 unsafe { std::ffi::CStr::from_bytes_with_nul_unchecked(BYTES) }