Home
last modified time | relevance | path

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

/linux/rust/syn/
H A Dwhitespace.rs5 let byte = s.as_bytes()[0]; in skip()
25 let bytes = s.as_bytes(); in skip()
H A Dlit.rs1384 let mut v = s.as_bytes(); in parse_lit_byte_str_cooked()
1460 let mut v = s.as_bytes(); in parse_lit_c_str_cooked()
1480 out.extend_from_slice(ch.encode_utf8(&mut [0u8; 4]).as_bytes()); in parse_lit_c_str_cooked()
1533 let mut v = &s.as_bytes()[2..]; in parse_lit_byte()
/linux/rust/kernel/
H A Dstr.rs182 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());
394 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {
601 s.as_bytes().as_ptr(), in write_str()
685 let bytes = s.as_bytes(); in write_str()
H A Dbug.rs16 const _FILE: &[u8] = file!().as_bytes();
H A Dfirmware.rs293 self.push_internal(s.as_bytes()) in push()
/linux/scripts/
H A Drustdoc_test_builder.rs73 std::fs::write(path, body.as_bytes()).unwrap(); in main()
/linux/drivers/gpu/nova-core/gsp/
H A Dcmdq.rs527 dst.header.as_bytes(), in send_command()
613 header.as_bytes(), in wait_for_msg()
/linux/rust/proc-macro2/
H A Dparse.rs51 fn as_bytes(&self) -> &'a [u8] { in as_bytes() method
52 self.rest.as_bytes() in as_bytes()
83 let byte = s.as_bytes()[0]; in skip_whitespace()
133 let bytes = input.as_bytes(); in block_comment()
/linux/rust/kernel/debugfs/
H A Dtraits.rs65 writer.write_slice_file(self.as_bytes(), offset) in write_to_slice()
/linux/rust/macros/
H A Dmodule.rs79 string = Literal::byte_string(string.as_bytes()), in emit_base()
/linux/drivers/android/binder/
H A Dthread.rs1075 if let Err(err) = alloc.write(secctx_off, secctx.as_bytes()) { in copy_transaction_data()