/third_party/rust/crates/memchr/bench/src/memmem/ |
H A D | imp.rs | 30 memmem::find(haystack.as_bytes(), needle.as_bytes()).is_some() 37 move |h| finder.find(h.as_bytes()).is_some() 44 memmem::find_iter(haystack.as_bytes(), needle.as_bytes()) 59 self.0.find_iter(haystack.as_bytes()) 68 memmem::rfind(haystack.as_bytes(), needle.as_bytes()).is_some() 75 move |h| finder.rfind(h.as_bytes()).is_some() 82 memmem::rfind_iter(haystack.as_bytes(), needl [all...] |
H A D | sliceslice.rs | 50 .map(|needle| memmem::Finder::new(needle.as_bytes())) in search_short_haystack() 56 searcher.find(haystack.as_bytes()).is_some(), in search_short_haystack() 82 searcher.find(haystack.as_bytes()).is_some(), in search_short_haystack() 119 DynamicAvx2Searcher::new(needle.as_bytes()) in search_short_haystack() 127 searcher.search_in(haystack.as_bytes()) in search_short_haystack() 148 .map(|needle| memmem::Finder::new(needle.as_bytes())) in search_long_haystack() 152 black_box(searcher.find(haystack.as_bytes()).is_some()); in search_long_haystack() 174 black_box(searcher.find(haystack.as_bytes()).is_some()); in search_long_haystack() 207 DynamicAvx2Searcher::new(needle.as_bytes()) in search_long_haystack() 214 searcher.search_in(haystack.as_bytes()) in search_long_haystack() [all...] |
/third_party/rust/crates/cxx/src/ |
H A D | cxx_string.rs | 117 pub fn as_bytes(&self) -> &[u8] { in as_bytes() functions 141 str::from_utf8(self.as_bytes()) in to_str() 153 String::from_utf8_lossy(self.as_bytes()) in to_string_lossy() 201 self.push_bytes(s.as_bytes()); in push_str() 212 lossy::display(self.as_bytes(), f) in fmt() 218 lossy::debug(self.as_bytes(), f) in fmt() 224 self.as_bytes() == other.as_bytes() in eq() 230 self.as_bytes() == other.as_bytes() in eq() [all...] |
/third_party/rust/crates/nix/test/ |
H A D | test_sendfile.rs | 73 tmp.write_all(body.as_bytes()).unwrap(); in test_sendfile_freebsd() 77 header_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_freebsd() 79 trailer_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_freebsd() 104 assert_eq!(bytes_written as usize, expected_string.as_bytes().len()); in test_sendfile_freebsd() 124 tmp.write_all(body.as_bytes()).unwrap(); in test_sendfile_dragonfly() 128 header_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_dragonfly() 130 trailer_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_dragonfly() 153 assert_eq!(bytes_written as usize, expected_string.as_bytes().len()); in test_sendfile_dragonfly() 173 tmp.write_all(body.as_bytes()).unwrap(); in test_sendfile_darwin() 177 header_strings.iter().map(|s| s.as_bytes()) in test_sendfile_darwin() [all...] |
H A D | test_pty.rs | 211 write(pty.master, string.as_bytes()).unwrap(); in test_openpty() 214 assert_eq!(&buf, string.as_bytes()); in test_openpty() 220 assert_eq!(&buf, echoed_string.as_bytes()); in test_openpty() 225 write(pty.slave, string2.as_bytes()).unwrap(); in test_openpty() 228 assert_eq!(&buf, echoed_string2.as_bytes()); in test_openpty() 260 write(pty.master, string.as_bytes()).unwrap(); in test_openpty_with_termios() 263 assert_eq!(&buf, string.as_bytes()); in test_openpty_with_termios() 268 assert_eq!(&buf, echoed_string.as_bytes()); in test_openpty_with_termios() 273 write(pty.slave, string2.as_bytes()).unwrap(); in test_openpty_with_termios() 276 assert_eq!(&buf, echoed_string2.as_bytes()); in test_openpty_with_termios() [all...] |
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | ecdsa.rs | 171 let res = EcdsaSig::sign(data.as_bytes(), &private_key).unwrap(); in sign_and_verify() 174 let verification = res.verify(data.as_bytes(), &public_key).unwrap(); in sign_and_verify() 179 .verify(String::from("hello2").as_bytes(), &public_key) in sign_and_verify() 184 let verification3 = res.verify(data.as_bytes(), &public_key2).unwrap(); in sign_and_verify() 195 let res = EcdsaSig::sign(data.as_bytes(), &private_key).unwrap(); in check_private_components() 197 let verification = res.verify(data.as_bytes(), &public_key).unwrap(); in check_private_components() 204 let verification2 = res2.verify(data.as_bytes(), &public_key).unwrap(); in check_private_components() 216 let res = EcdsaSig::sign(data.as_bytes(), &private_key).unwrap(); in serialize_deserialize() 221 let verification = sig.verify(data.as_bytes(), &public_key).unwrap(); in serialize_deserialize()
|
H A D | pkcs7.rs | 307 Pkcs7::encrypt(&certs, message.as_bytes(), cipher, flags).expect("should succeed"); in encrypt_decrypt_test() 310 .to_smime(message.as_bytes(), flags) in encrypt_decrypt_test() 340 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed"); in sign_verify_test_detached() 343 .to_smime(message.as_bytes(), flags) in sign_verify_test_detached() 354 Some(message.as_bytes()), in sign_verify_test_detached() 360 assert_eq!(output, message.as_bytes()); in sign_verify_test_detached() 361 assert_eq!(content.expect("should be non-empty"), message.as_bytes()); in sign_verify_test_detached() 384 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed"); in sign_verify_test_normal() 387 .to_smime(message.as_bytes(), flags) in sign_verify_test_normal() 398 assert_eq!(output, message.as_bytes()); in sign_verify_test_normal() [all...] |
H A D | string.rs | 43 self.as_bytes() in as_ref() 66 self.as_bytes() in as_ref()
|
/third_party/node/deps/zlib/google/ |
H A D | compression_utils.cc | 37 return GzipCompress(base::as_bytes(input), output); in GzipCompress() 95 return GzipUncompress(base::as_bytes(input), base::as_bytes(output)); in GzipUncompress() 110 return GzipUncompress(base::as_bytes(input), output); in GzipUncompress() 125 return GetUncompressedSize(base::as_bytes(compressed_data)); in GetUncompressedSize()
|
/third_party/rust/crates/rustix/src/path/ |
H A D | arg.rs | 126 with_c_str(self.as_bytes(), f) in into_with_c_str() 162 with_c_str(self.as_bytes(), f) in into_with_c_str() 219 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 229 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 239 with_c_str(self.as_bytes(), f) in into_with_c_str() 258 CString::new(OsString::as_os_str(self).as_bytes()) in to_string_lossy() 277 with_c_str(self.as_bytes(), f) in into_with_c_str() 296 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 335 CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 345 CString::new(self.as_os_str().as_bytes()) in to_string_lossy() [all...] |
H A D | dec_int.rs | 75 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str() 91 pub fn as_bytes(&self) -> &[u8] { in as_bytes() functions 103 slice.copy_from_slice(s.as_bytes()); in write_str()
|
/third_party/rust/crates/nom/src/ |
H A D | traits.rs | 92 fn as_bytes(&self) -> &[u8]; in as_bytes() functions 97 fn as_bytes(&self) -> &[u8] { in as_bytes() functions 98 (*self).as_bytes() in as_bytes() 104 fn as_bytes(&self) -> &[u8] { in as_bytes() functions 111 fn as_bytes(&self) -> &[u8] { in as_bytes() functions 118 fn as_bytes(&self) -> &[u8] { in as_bytes() functions 128 fn as_bytes(&self) -> &[u8] { in as_bytes() functions 135 fn as_bytes(&self) -> &[u8] { in as_bytes() functions 829 self.compare(AsBytes::as_bytes(t)) in compare() 833 self.compare_no_case(AsBytes::as_bytes( in compare() [all...] |
/third_party/node/deps/v8/third_party/zlib/google/ |
H A D | compression_utils.cc | 38 return GzipCompress(base::as_bytes(input), output); in GzipCompress() 95 return GzipUncompress(base::as_bytes(input), base::as_bytes(output)); in GzipUncompress() 110 return GzipUncompress(base::as_bytes(input), output); in GzipUncompress() 125 return GetUncompressedSize(base::as_bytes(compressed_data)); in GetUncompressedSize()
|
/third_party/skia/third_party/externals/zlib/google/ |
H A D | compression_utils.cc | 38 return GzipCompress(base::as_bytes(input), output); in GzipCompress() 95 return GzipUncompress(base::as_bytes(input), base::as_bytes(output)); in GzipUncompress() 110 return GzipUncompress(base::as_bytes(input), output); in GzipUncompress() 125 return GetUncompressedSize(base::as_bytes(compressed_data)); in GetUncompressedSize()
|
/third_party/rust/crates/regex/src/ |
H A D | expand.rs | 14 match find_byte(b'$', replacement.as_bytes()) { in expand_str() 21 if replacement.as_bytes().get(1).map_or(false, |&b| b == b'$') { in expand_str() 27 let cap_ref = match find_cap_ref(replacement.as_bytes()) { in expand_str() 80 dst.extend(caps.get(i).map(|m| m.as_bytes()).unwrap_or(b"")); in expand_bytes() 84 caps.name(name).map(|m| m.as_bytes()).unwrap_or(b""), in expand_bytes() 201 assert_eq!(None, find_cap_ref($text.as_bytes())); 207 assert_eq!(Some($capref), find_cap_ref($text.as_bytes()));
|
H A D | input.rs | 101 fn as_bytes(&self) -> &[u8]; in as_bytes() functions 133 fn as_bytes(&self) -> &[u8] { in as_bytes() functions 134 (**self).as_bytes() in as_bytes() 219 fn as_bytes(&self) -> &[u8] { in as_bytes() functions 332 fn as_bytes(&self) -> &[u8] { in as_bytes() functions
|
H A D | re_set.rs | 2 ($name:ident, $builder_mod:ident, $text_ty:ty, $as_bytes:expr, 180 self.0.searcher().is_match_at($as_bytes(text), start) in is_match_at() 247 self.0.searcher().many_matches_at(matches, $as_bytes(text), start) in read_matches_at() 445 #[allow(dead_code)] fn as_bytes_str(text: &str) -> &[u8] { text.as_bytes() } in fmt()
|
/third_party/rust/crates/nom/benchmarks/benches/ |
H A D | ini.rs | 62 b.iter(|| categories(str.as_bytes()).unwrap()) in bench_ini() 79 b.iter(|| acc(str.as_bytes()).unwrap()) in bench_ini_keys_and_values() 89 b.iter(|| key_value(str.as_bytes()).unwrap()) in bench_ini_key_value()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-blob.hh | 57 hb_bytes_t as_bytes () const { return hb_bytes_t (data, length); } in as_bytes() function 59 const Type* as () const { return as_bytes ().as<Type> (); } in as()
|
/third_party/rust/crates/regex/tests/ |
H A D | macros_bytes.rs | 2 macro_rules! text { ($text:expr) => { $text.as_bytes() } } 4 macro_rules! match_text { ($text:expr) => { $text.as_bytes() } }
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_termios.rs | 81 write_all(pty.master, string.as_bytes()); in test_output_flags() 89 assert_eq!(&buf, transformed_string.as_bytes()); in test_output_flags() 128 write_all(pty.master, string.as_bytes()); in test_local_flags()
|
/third_party/rust/crates/memchr/src/memmem/ |
H A D | twoway.rs | 718 get_suffix_forward($given.as_bytes(), SuffixKind::Minimal); in suffix_forward() 727 get_suffix_forward($given.as_bytes(), SuffixKind::Maximal); in suffix_forward() 775 get_suffix_reverse($given.as_bytes(), SuffixKind::Minimal); in suffix_reverse() 784 get_suffix_reverse($given.as_bytes(), SuffixKind::Maximal); in suffix_reverse() 876 assert_eq!(Some(0), rfind(haystack.as_bytes(), needle.as_bytes())); in regression_rev_small_period()
|
/third_party/mesa3d/src/panfrost/bifrost/valhall/ |
H A D | test-assembly.py | 33 as_bytes = struct.pack('<Q', u64) 34 as_strings = [('0' + hex(byte)[2:])[-2:] for byte in as_bytes]
|
/third_party/rust/crates/minimal-lexical/examples/ |
H A D | simple.rs | 208 |s: &str, v, t: &str| assert_eq!(parse_float(s.as_bytes()), (v, t.as_bytes())); in main()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-random/ |
H A D | _common.rs | 166 let x: f64 = parse_float(text.as_bytes()).0; in validate() 168 let x: f32 = parse_float(text.as_bytes()).0; in validate()
|