/third_party/rust/crates/memchr/bench/src/memmem/ |
D | imp.rs | 30 memmem::find(haystack.as_bytes(), needle.as_bytes()).is_some() in oneshot() 37 move |h| finder.find(h.as_bytes()).is_some() in prebuilt() 44 memmem::find_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter() 59 self.0.find_iter(haystack.as_bytes()) in iter() 68 memmem::rfind(haystack.as_bytes(), needle.as_bytes()).is_some() in oneshot() 75 move |h| finder.rfind(h.as_bytes()).is_some() in prebuilt() 82 memmem::rfind_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter() 97 self.0.rfind_iter(haystack.as_bytes()) in iter() 122 finder(needle.as_bytes()).find(haystack.as_bytes()).is_some() in oneshot() 128 let finder = finder(needle.as_bytes()).into_owned(); in prebuilt() [all …]
|
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/ |
D | cxx_string.rs | 117 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method 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() 236 self.as_bytes() == other.as_bytes() in eq() 244 self.as_bytes().partial_cmp(other.as_bytes()) in partial_cmp() [all …]
|
/third_party/rust/crates/nix/test/ |
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()).collect(); in test_sendfile_darwin() [all …]
|
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/rustix/src/path/ |
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 as_cow_c_str() 229 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in into_c_str() 239 with_c_str(self.as_bytes(), f) in into_with_c_str() 258 CString::new(OsString::as_os_str(self).as_bytes()) in as_cow_c_str() 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 as_cow_c_str() 335 CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str() 345 CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in into_c_str() [all …]
|
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() method 103 slice.copy_from_slice(s.as_bytes()); in write_str()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
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()
|
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 …]
|
/third_party/rust/crates/regex/src/ |
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()));
|
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) 247 self.0.searcher().many_matches_at(matches, $as_bytes(text), start) 445 #[allow(dead_code)] fn as_bytes_str(text: &str) -> &[u8] { text.as_bytes() }
|
D | input.rs | 101 fn as_bytes(&self) -> &[u8]; in as_bytes() method 133 fn as_bytes(&self) -> &[u8] { in as_bytes() method 134 (**self).as_bytes() in as_bytes() 219 fn as_bytes(&self) -> &[u8] { in as_bytes() method 332 fn as_bytes(&self) -> &[u8] { in as_bytes() method
|
/third_party/node/deps/zlib/google/ |
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/node/deps/v8/third_party/zlib/google/ |
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/ |
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/nom/src/ |
D | traits.rs | 92 fn as_bytes(&self) -> &[u8]; in as_bytes() method 97 fn as_bytes(&self) -> &[u8] { in as_bytes() method 98 (*self).as_bytes() in as_bytes() 104 fn as_bytes(&self) -> &[u8] { in as_bytes() method 111 fn as_bytes(&self) -> &[u8] { in as_bytes() method 118 fn as_bytes(&self) -> &[u8] { in as_bytes() method 128 fn as_bytes(&self) -> &[u8] { 135 fn as_bytes(&self) -> &[u8] { 829 self.compare(AsBytes::as_bytes(t)) in compare() 833 self.compare_no_case(AsBytes::as_bytes(t)) in compare_no_case() [all …]
|
/third_party/rust/crates/memchr/src/tests/memchr/ |
D | testdata.rs | 168 f(needles[0], corpus.as_bytes()), in one() 191 f(needles[0], needles[1], corpus.as_bytes()), in two() 216 f(needles[0], needles[1], needles[2], corpus.as_bytes()), in three() 235 self.iter(reverse, f(ns[0], self.corpus.as_bytes())); in iter_one() 245 self.iter(reverse, f(ns[0], ns[1], self.corpus.as_bytes())); in iter_two() 255 self.iter(reverse, f(ns[0], ns[1], ns[2], self.corpus.as_bytes())); in iter_three()
|
/third_party/rust/crates/nom/benchmarks/benches/ |
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/rust/crates/nix/test/sys/ |
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/linux-raw-sys/gen/src/ |
D | main.rs | 56 .write_all(src_lib_rs_contents.as_bytes()) in main() 59 .write_all("// The rest of this file is auto-generated!\n".as_bytes()) in main() 76 .write_all(cargo_toml_contents.as_bytes()) in main() 79 .write_all("# The rest of this file is auto-generated!\n".as_bytes()) in main()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
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/syn/src/ |
D | whitespace.rs | 3 let byte = s.as_bytes()[0]; in skip() 23 let bytes = s.as_bytes(); in skip()
|
/third_party/rust/crates/regex/tests/ |
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/minimal-lexical/tests/ |
D | parse_tests.rs | 5 let integer = integer.as_bytes().iter(); in check_parse_float() 6 let fraction = fraction.as_bytes().iter(); in check_parse_float()
|
/third_party/mesa3d/src/panfrost/bifrost/valhall/ |
D | test-assembly.py | 33 as_bytes = struct.pack('<Q', u64) 34 as_strings = [('0' + hex(byte)[2:])[-2:] for byte in as_bytes]
|