Searched refs:from_bytes_with_nul_unchecked (Results 1 – 2 of 2) sorted by relevance
252 unsafe { Self::from_bytes_with_nul_unchecked(bytes) } in from_char_ptr()276 Ok(unsafe { Self::from_bytes_with_nul_unchecked(bytes) }) in from_bytes_with_nul()287 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked() method545 unsafe { Self::from_bytes_with_nul_unchecked(&self.0[index.start..]) } in index()933 unsafe { CStr::from_bytes_with_nul_unchecked(self.buf.as_slice()) } in deref()
394 Ok(unsafe { CStr::from_bytes_with_nul_unchecked(&buf[..len]) }) in strcpy_into_buf()
Completed in 7 milliseconds