/third_party/musl/libc-test/src/functionalext/supplement/multibyte/ |
D | c16rtomb.c | 30 char bytes[MB_LEN_MAX]; in c16rtomb_0100() local 31 memset(bytes, 0, sizeof(bytes)); in c16rtomb_0100() 32 size_t result = c16rtomb(bytes, L'h', NULL); in c16rtomb_0100() 36 if (bytes[0] != 'h') { in c16rtomb_0100() 37 t_error("%s bytes[0] is %c, not \'h\'\n", bytes[0]); in c16rtomb_0100() 47 memset(bytes, 0, sizeof(bytes)); in c16rtomb_0100() 48 result = c16rtomb(bytes, L'h', NULL); in c16rtomb_0100() 52 if (bytes[0] != 'h') { in c16rtomb_0100() 53 t_error("%s bytes[0] is %c, not \'h\'\n", bytes[0]); in c16rtomb_0100() 57 memset(bytes, 0, sizeof(bytes)); in c16rtomb_0100() [all …]
|
D | c32rtomb.c | 48 char bytes[MB_LEN_MAX]; in c32rtomb_0200() local 49 memset(bytes, 1, sizeof(bytes)); in c32rtomb_0200() 51 size_t result = c32rtomb(bytes, L'\0', NULL); in c32rtomb_0200() 55 if (bytes[0] != '\0') { in c32rtomb_0200() 58 if (bytes[1] != '\x01') { in c32rtomb_0200() 62 memset(bytes, 0, sizeof(bytes)); in c32rtomb_0200() 63 result = c32rtomb(bytes, L'h', NULL); in c32rtomb_0200() 67 if (bytes[0] != 'h') { in c32rtomb_0200() 79 char bytes[MB_LEN_MAX]; in c32rtomb_0300() local 88 memset(bytes, 0, sizeof(bytes)); in c32rtomb_0300() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICUBinary.java | 54 static boolean validate(ByteBuffer bytes) { in validate() argument 56 readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in validate() 60 int count = bytes.getInt(bytes.position()); // Do not move the position. in validate() 67 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) { in validate() 70 if (!startsWithPackageName(bytes, getNameOffset(bytes, 0)) || in validate() 71 !startsWithPackageName(bytes, getNameOffset(bytes, count - 1))) { in validate() 77 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName() argument 81 if (bytes.get(start + i) != ICUData.PACKAGE_NAME.charAt(i)) { in startsWithPackageName() 86 byte c = bytes.get(start + length++); in startsWithPackageName() 87 if ((c != 'b' && c != 'l') || bytes.get(start + length) != '/') { in startsWithPackageName() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | ICUBinary.java | 58 static boolean validate(ByteBuffer bytes) { in validate() argument 60 readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in validate() 64 int count = bytes.getInt(bytes.position()); // Do not move the position. in validate() 71 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) { in validate() 74 if (!startsWithPackageName(bytes, getNameOffset(bytes, 0)) || in validate() 75 !startsWithPackageName(bytes, getNameOffset(bytes, count - 1))) { in validate() 81 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName() argument 85 if (bytes.get(start + i) != ICUData.PACKAGE_NAME.charAt(i)) { in startsWithPackageName() 90 byte c = bytes.get(start + length++); in startsWithPackageName() 91 if ((c != 'b' && c != 'l') || bytes.get(start + length) != '/') { in startsWithPackageName() [all …]
|
/third_party/skia/fuzz/ |
D | FuzzMain.cpp | 33 static DEFINE_string2(bytes, b, "", "A path to a file or a directory. If a file, the " 79 static void fuzz_api(sk_sp<SkData> bytes, SkString name); 147 sk_sp<SkData> bytes(SkData::MakeFromFileName(path.c_str())); in fuzz_file() local 148 if (!bytes) { in fuzz_file() 164 fuzz_android_codec(bytes); in fuzz_file() 168 fuzz_animated_img(bytes); in fuzz_file() 172 fuzz_api(bytes, name); in fuzz_file() 176 fuzz_color_deserialize(bytes); in fuzz_file() 180 fuzz_filter_fuzz(bytes); in fuzz_file() 184 fuzz_image_decode(bytes); in fuzz_file() [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | ByteString.cs | 56 private readonly byte[] bytes; field in Google.Protobuf.ByteString 67 internal static ByteString FromBytes(byte[] bytes) in FromBytes() argument 69 return new ByteString(bytes); in FromBytes() 76 internal static ByteString AttachBytes(byte[] bytes) in AttachBytes() argument 78 return new ByteString(bytes); in AttachBytes() 85 private ByteString(byte[] bytes) in ByteString() argument 87 this.bytes = bytes; in ByteString() 103 get { return bytes.Length; } 124 return new ReadOnlySpan<byte>(bytes); 137 return new ReadOnlyMemory<byte>(bytes); [all …]
|
/third_party/elfutils/libdw/ |
D | dwarf_next_cfi.c | 63 const uint8_t *bytes = data->d_buf + off; in dwarf_next_cfi() local 69 uint64_t length = read_4ubyte_unaligned_inc (&dw, bytes); in dwarf_next_cfi() 75 if (unlikely (limit - bytes < 8)) in dwarf_next_cfi() 81 length = read_8ubyte_unaligned_inc (&dw, bytes); in dwarf_next_cfi() 90 if (unlikely ((uint64_t) (limit - bytes) < length) in dwarf_next_cfi() 100 limit = bytes + length; in dwarf_next_cfi() 102 const uint8_t *const cie_pointer_start = bytes; in dwarf_next_cfi() 104 entry->cie.CIE_id = read_8ubyte_unaligned_inc (&dw, bytes); in dwarf_next_cfi() 107 entry->cie.CIE_id = read_4ubyte_unaligned_inc (&dw, bytes); in dwarf_next_cfi() 132 uint8_t version = *bytes++; in dwarf_next_cfi() [all …]
|
/third_party/rust/crates/minimal-lexical/fuzz/fuzz_targets/ |
D | parse.rs | 3 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign() 4 match bytes.get(0) { in parse_sign() 5 Some(&b'+') => (true, &bytes[1..]), in parse_sign() 6 Some(&b'-') => (false, &bytes[1..]), in parse_sign() 7 _ => (true, bytes), in parse_sign() 56 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero() 57 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero() 58 &bytes[count..] in ltrim_zero() 63 fn rtrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in rtrim_zero() 64 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero() [all …]
|
/third_party/rust/crates/minimal-lexical/tests/ |
D | integration_tests.rs | 3 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign() 4 match bytes.get(0) { in parse_sign() 5 Some(&b'+') => (true, &bytes[1..]), in parse_sign() 6 Some(&b'-') => (false, &bytes[1..]), in parse_sign() 7 _ => (true, bytes), in parse_sign() 56 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero() 57 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero() 58 &bytes[count..] in ltrim_zero() 63 fn rtrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in rtrim_zero() 64 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero() [all …]
|
/third_party/cups-filters/cupsfilters/ |
D | check.c | 30 cupsCheckBytes(const unsigned char *bytes, /* I - Bytes to check */ in cupsCheckBytes() argument 35 if (*bytes++) in cupsCheckBytes() 37 if (*bytes++) in cupsCheckBytes() 39 if (*bytes++) in cupsCheckBytes() 41 if (*bytes++) in cupsCheckBytes() 43 if (*bytes++) in cupsCheckBytes() 45 if (*bytes++) in cupsCheckBytes() 47 if (*bytes++) in cupsCheckBytes() 49 if (*bytes++) in cupsCheckBytes() 56 if (*bytes++) in cupsCheckBytes() [all …]
|
/third_party/rust/crates/memchr/bench/src/memchr/ |
D | inputs.rs | 120 self.never(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in never1() 124 self.never(2).and_then(|bytes| Search2::new(self.corpus, bytes)) in never2() 128 self.never(3).and_then(|bytes| Search3::new(self.corpus, bytes)) in never3() 142 self.rare(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in rare1() 146 self.rare(2).and_then(|bytes| Search2::new(self.corpus, bytes)) in rare2() 150 self.rare(3).and_then(|bytes| Search3::new(self.corpus, bytes)) in rare3() 164 self.uncommon(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in uncommon1() 168 self.uncommon(2).and_then(|bytes| Search2::new(self.corpus, bytes)) in uncommon2() 172 self.uncommon(3).and_then(|bytes| Search3::new(self.corpus, bytes)) in uncommon3() 186 self.common(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in common1() [all …]
|
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/ |
D | _common.rs | 8 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign() 9 match bytes.get(0) { in parse_sign() 10 Some(&b'+') => (true, &bytes[1..]), in parse_sign() 11 Some(&b'-') => (false, &bytes[1..]), in parse_sign() 12 _ => (true, bytes), in parse_sign() 61 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero() 62 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero() 63 &bytes[count..] in ltrim_zero() 68 fn rtrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in rtrim_zero() 69 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero() [all …]
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | DecodeUtf8Test.java | 65 byte[] bytes = new byte[]{(byte) i, (byte) j, (byte) k}; in testThreeBytes() 66 ByteString bs = ByteString.copyFrom(bytes); in testThreeBytes() 68 assertInvalid(bytes); in testThreeBytes() 171 byte[] bytes = "The quick brown fox jumps over the lazy dog".getBytes(Internal.UTF_8); in testInvalidBufferSlice() 172 assertInvalidSlice(bytes, bytes.length - 3, 4); in testInvalidBufferSlice() 173 assertInvalidSlice(bytes, bytes.length, 1); in testInvalidBufferSlice() 174 assertInvalidSlice(bytes, bytes.length + 1, 0); in testInvalidBufferSlice() 175 assertInvalidSlice(bytes, 0, bytes.length + 1); in testInvalidBufferSlice() 179 byte[] bytes = new byte[bytesAsInt.length]; in assertInvalid() 181 bytes[i] = (byte) bytesAsInt[i]; in assertInvalid() [all …]
|
/third_party/python/Lib/ |
D | telnetlib.py | 50 IAC = bytes([255]) # "Interpret As Command" 51 DONT = bytes([254]) 52 DO = bytes([253]) 53 WONT = bytes([252]) 54 WILL = bytes([251]) 55 theNULL = bytes([0]) 57 SE = bytes([240]) # Subnegotiation End 58 NOP = bytes([241]) # No Operation 59 DM = bytes([242]) # Data Mark 60 BRK = bytes([243]) # Break [all …]
|
/third_party/rust/crates/minimal-lexical/examples/ |
D | simple.rs | 50 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign() 51 match bytes.get(0) { in parse_sign() 52 Some(&b'+') => (true, &bytes[1..]), in parse_sign() 53 Some(&b'-') => (false, &bytes[1..]), in parse_sign() 54 _ => (true, bytes), in parse_sign() 103 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero() 104 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero() 105 &bytes[count..] in ltrim_zero() 110 fn rtrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in rtrim_zero() 111 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero() [all …]
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_cipher.camellia.data | 9 CAMELLIA Encrypt and decrypt 0 bytes [#1] 17 CAMELLIA Encrypt and decrypt 2 bytes [#1] 21 CAMELLIA Encrypt and decrypt 7 bytes [#1] 25 CAMELLIA Encrypt and decrypt 8 bytes [#1] 29 CAMELLIA Encrypt and decrypt 9 bytes [#1] 33 CAMELLIA Encrypt and decrypt 15 bytes [#1] 37 CAMELLIA Encrypt and decrypt 16 bytes [#1] 41 CAMELLIA Encrypt and decrypt 17 bytes [#1] 45 CAMELLIA Encrypt and decrypt 31 bytes [#1] 49 CAMELLIA Encrypt and decrypt 32 bytes [#1] [all …]
|
D | test_suite_cipher.des.data | 13 DES Encrypt and decrypt 0 bytes [#1] 21 DES Encrypt and decrypt 2 bytes 25 DES Encrypt and decrypt 7 bytes 29 DES Encrypt and decrypt 8 bytes 33 DES Encrypt and decrypt 9 bytes 37 DES Encrypt and decrypt 15 bytes 41 DES Encrypt and decrypt 16 bytes 45 DES Encrypt and decrypt 17 bytes 49 DES Encrypt and decrypt 31 bytes 53 DES Encrypt and decrypt 32 bytes [#1] [all …]
|
D | test_suite_bignum_mod_raw.function | 131 size_t bytes = limbs * sizeof(mbedtls_mpi_uint); 144 TEST_CF_SECRET(X, bytes); 145 TEST_CF_SECRET(Y, bytes); 149 TEST_CF_PUBLIC(X, bytes); 150 TEST_CF_PUBLIC(Y, bytes); 152 TEST_ASSERT(memcmp(X, Y, bytes) != 0); 155 TEST_CF_SECRET(X, bytes); 156 TEST_CF_SECRET(Y, bytes); 160 TEST_CF_PUBLIC(X, bytes); 161 TEST_CF_PUBLIC(Y, bytes); [all …]
|
D | test_suite_cipher.aria.data | 5 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 0 bytes 13 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 2 bytes 17 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 7 bytes 21 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 8 bytes 25 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 9 bytes 29 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 15 bytes 33 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 16 bytes 37 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 17 bytes 41 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 31 bytes 45 ARIA-128 CCM*-NO-TAG - Encrypt and decrypt 32 bytes [all …]
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-random/ |
D | _common.rs | 22 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign() 23 match bytes.get(0) { in parse_sign() 24 Some(&b'+') => (true, &bytes[1..]), in parse_sign() 25 Some(&b'-') => (false, &bytes[1..]), in parse_sign() 26 _ => (true, bytes), in parse_sign() 75 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero() 76 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero() 77 &bytes[count..] in ltrim_zero() 82 fn rtrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in rtrim_zero() 83 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/ipcpipeline/ |
D | protocol.txt | 23 - a request ID, 4 bytes, little endian 24 - the payload size, 4 bytes, little endian 25 - N bytes payload 30 result: 4 bytes, little endian 35 query type: 4 bytes, little endian 38 pts: 8 bytes, little endian 39 dts: 8 bytes, little endian 40 duration: 8 bytes, little endian 41 offset: 8 bytes, little endian 42 offset end: 8 bytes, little endian [all …]
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/ |
D | main.rs | 15 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign() 16 match bytes.get(0) { in parse_sign() 17 Some(&b'+') => (true, &bytes[1..]), in parse_sign() 18 Some(&b'-') => (false, &bytes[1..]), in parse_sign() 19 _ => (true, bytes), in parse_sign() 68 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero() 69 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero() 70 &bytes[count..] in ltrim_zero() 75 fn rtrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in rtrim_zero() 76 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero() [all …]
|
/third_party/node/test/fixtures/wpt/encoding/ |
D | textdecoder-streaming.any.js | 45 function bytes(byteArray) { function 53 assert_equals(decoder.decode(bytes([0xC1]), {stream: true}), "\uFFFD"); 56 assert_equals(decoder.decode(bytes([0xF5]), {stream: true}), "\uFFFD"); 59 assert_equals(decoder.decode(bytes([0xE0, 0x41]), {stream: true}), "\uFFFDA"); 60 assert_equals(decoder.decode(bytes([0x42])), "B"); 62 assert_equals(decoder.decode(bytes([0xE0, 0x80]), {stream: true}), "\uFFFD\uFFFD"); 63 assert_equals(decoder.decode(bytes([0x80])), "\uFFFD"); 65 assert_equals(decoder.decode(bytes([0xED, 0xA0]), {stream: true}), "\uFFFD\uFFFD"); 66 assert_equals(decoder.decode(bytes([0x80])), "\uFFFD"); 68 assert_equals(decoder.decode(bytes([0xF0, 0x41]), {stream: true}), "\uFFFDA"); [all …]
|
/third_party/protobuf/js/experimental/runtime/kernel/ |
D | kernel_test.js | 23 function createArrayBuffer(...bytes) { argument 24 return new Uint8Array(bytes).buffer; 60 const bytes = createArrayBuffer(0x08, 0x01); constant 61 const accessor = Kernel.fromArrayBuffer(bytes); 97 const bytes = createArrayBuffer(0x08, 0x01); constant 98 const accessor = Kernel.fromArrayBuffer(bytes); 107 const bytes = createArrayBuffer(0x08, 0x01); constant 108 const accessor = Kernel.fromArrayBuffer(bytes); 132 const bytes = createArrayBuffer(0x08, 0x01); constant 133 const accessor = Kernel.fromArrayBuffer(bytes); [all …]
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/ |
D | main.rs | 22 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign() 23 match bytes.get(0) { in parse_sign() 24 Some(&b'+') => (true, &bytes[1..]), in parse_sign() 25 Some(&b'-') => (false, &bytes[1..]), in parse_sign() 26 _ => (true, bytes), in parse_sign() 75 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero() 76 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero() 77 &bytes[count..] in ltrim_zero() 82 fn rtrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in rtrim_zero() 83 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero() [all …]
|