Searched refs:as_bytes (Results 1 – 11 of 11) sorted by relevance
5 let byte = s.as_bytes()[0]; in skip()25 let bytes = s.as_bytes(); in skip()
1384 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()
182 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()
16 const _FILE: &[u8] = file!().as_bytes();
293 self.push_internal(s.as_bytes()) in push()
73 std::fs::write(path, body.as_bytes()).unwrap(); in main()
527 dst.header.as_bytes(), in send_command()613 header.as_bytes(), in wait_for_msg()
51 fn as_bytes(&self) -> &'a [u8] { in as_bytes() method52 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()
65 writer.write_slice_file(self.as_bytes(), offset) in write_to_slice()
79 string = Literal::byte_string(string.as_bytes()), in emit_base()
1075 if let Err(err) = alloc.write(secctx_off, secctx.as_bytes()) { in copy_transaction_data()