Home
last modified time | relevance | path

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

/linux-6.15/rust/kernel/
H A Dstr.rs173 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());
304 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
330 core::str::from_utf8(self.as_bytes()) in to_str()
353 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str_unchecked()
445 for &c in self.as_bytes() { in fmt()
477 for &c in self.as_bytes() { in fmt()
492 BStr::from_bytes(self.as_bytes()) in as_ref()
512 let _ = &self.as_bytes()[index.start..]; in index()
567 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {
791 s.as_bytes().as_ptr(), in write_str()
H A Dsecurity.rs52 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
H A Dfirmware.rs285 self.push_internal(s.as_bytes()) in push()
H A Dkunit.rs236 let name_u8 = ::core::stringify!($name).as_bytes();
/linux-6.15/drivers/gpu/nova-core/
H A Dutil.rs4 let src = s.as_bytes();
/linux-6.15/scripts/
H A Drustdoc_test_builder.rs71 std::fs::write(path, body.as_bytes()).unwrap(); in main()
/linux-6.15/rust/kernel/block/mq/
H A Draw_writer.rs40 let bytes = s.as_bytes(); in write_str()
/linux-6.15/rust/macros/
H A Dmodule.rs71 string = Literal::byte_string(string.as_bytes()), in emit_base()
/linux-6.15/drivers/gpu/drm/
H A Ddrm_panic_qr.rs925 &Segment::Binary(url_cstr.as_bytes()), in drm_panic_qr_generate()