Home
last modified time | relevance | path

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

/rust/kernel/
A Dstr.rs173 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());
326 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
361 core::str::from_utf8(self.as_bytes()) in to_str()
384 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str_unchecked()
508 for &c in self.as_bytes() { in fmt()
523 BStr::from_bytes(self.as_bytes()) in as_ref()
543 let _ = &self.as_bytes()[index.start..]; in index()
598 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {
812 s.as_bytes().as_ptr(), in write_str()
A Dsecurity.rs52 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
A Dbug.rs16 const _FILE: &[u8] = file!().as_bytes();
A Dfirmware.rs286 self.push_internal(s.as_bytes()) in push()
A Dkunit.rs263 let name_u8 = ::core::stringify!($name).as_bytes();
/rust/kernel/block/mq/
A Draw_writer.rs40 let bytes = s.as_bytes(); in write_str()
/rust/macros/
A Dmodule.rs71 string = Literal::byte_string(string.as_bytes()), in emit_base()

Completed in 11 milliseconds