/third_party/musl/libc-test/src/functionalext/supplement/multibyte/ |
H A 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, in c16rtomb_0100() 111 char bytes[MB_LEN_MAX]; c16rtomb_0300() local 126 char bytes[MB_LEN_MAX]; c16rtomb_0400() local 154 char bytes[MB_LEN_MAX]; c16rtomb_0500() local [all...] |
H A 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() 56 t_error("%s bytes[0] failed\n", __func__); in c32rtomb_0200() 58 if (bytes[1] != '\x01') { in c32rtomb_0200() 59 t_error("%s bytes[1] failed\n", __func__); in c32rtomb_0200() 62 memset(bytes, 0, sizeof(bytes)); in c32rtomb_0200() 79 char bytes[MB_LEN_MAX]; c32rtomb_0300() local 150 char bytes[MB_LEN_MAX]; c32rtomb_0400() local [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A 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() 64 // For each item, there is one ToC entry (8 bytes) and a name string in validate() 65 // and a data item of at least 16 bytes. in validate() 67 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) { in validate() 70 if (!startsWithPackageName(bytes, getNameOffset(bytes, in validate() 77 startsWithPackageName(ByteBuffer bytes, int start) startsWithPackageName() argument 93 getData(ByteBuffer bytes, CharSequence key) getData() argument 105 addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names) addBaseNamesInFolder() argument 120 binarySearch(ByteBuffer bytes, CharSequence key) binarySearch() argument 145 getNameOffset(ByteBuffer bytes, int index) getNameOffset() argument 153 getDataOffset(ByteBuffer bytes, int index) getDataOffset() argument 167 addBaseName(ByteBuffer bytes, int index, String folder, String suffix, StringBuilder sb, Set<String> names) addBaseName() argument 265 PackageDataFile(String item, ByteBuffer bytes) PackageDataFile() argument 359 compareKeys(CharSequence key, ByteBuffer bytes, int offset) compareKeys() argument 378 compareKeys(CharSequence key, byte[] bytes, int offset) compareKeys() argument 553 readHeaderAndDataVersion(ByteBuffer bytes, int dataFormat, Authenticate authenticate) readHeaderAndDataVersion() argument 572 readHeader(ByteBuffer bytes, int dataFormat, Authenticate authenticate) readHeader() argument 649 skipBytes(ByteBuffer bytes, int skipLength) skipBytes() argument 655 getBytes(ByteBuffer bytes, int length, int additionalSkipLength) getBytes() argument 664 getString(ByteBuffer bytes, int length, int additionalSkipLength) getString() argument 671 getChars(ByteBuffer bytes, int length, int additionalSkipLength) getChars() argument 678 getShorts(ByteBuffer bytes, int length, int additionalSkipLength) getShorts() argument 685 getInts(ByteBuffer bytes, int length, int additionalSkipLength) getInts() argument 692 getLongs(ByteBuffer bytes, int length, int additionalSkipLength) getLongs() argument 702 sliceWithOrder(ByteBuffer bytes) sliceWithOrder() argument [all...] |
H A D | RBBIDataWrapper.java | 41 * Length of a table row in bytes. Note mismatch with table data, which is short[]. 59 * Length in bytes of the state table header, of all the int32 fields 71 static RBBIStateTable get(ByteBuffer bytes, int length) throws IOException { in get() argument 79 This.fNumStates = bytes.getInt(); in get() 80 This.fRowLen = bytes.getInt(); in get() 81 This.fDictCategoriesStart = bytes.getInt(); in get() 82 This.fLookAheadResultsSize = bytes.getInt(); in get() 83 This.fFlags = bytes.getInt(); in get() 84 int lengthOfTable = length - fHeaderSize; // length in bytes. in get() 89 byte b = bytes in get() 99 put(DataOutputStream bytes) put() argument 292 get(ByteBuffer bytes) get() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A 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() 68 // For each item, there is one ToC entry (8 bytes) and a name string in validate() 69 // and a data item of at least 16 bytes. in validate() 71 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) { in validate() 74 if (!startsWithPackageName(bytes, getNameOffset(bytes, in validate() 81 startsWithPackageName(ByteBuffer bytes, int start) startsWithPackageName() argument 97 getData(ByteBuffer bytes, CharSequence key) getData() argument 109 addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names) addBaseNamesInFolder() argument 124 binarySearch(ByteBuffer bytes, CharSequence key) binarySearch() argument 149 getNameOffset(ByteBuffer bytes, int index) getNameOffset() argument 157 getDataOffset(ByteBuffer bytes, int index) getDataOffset() argument 171 addBaseName(ByteBuffer bytes, int index, String folder, String suffix, StringBuilder sb, Set<String> names) addBaseName() argument 269 PackageDataFile(String item, ByteBuffer bytes) PackageDataFile() argument 363 compareKeys(CharSequence key, ByteBuffer bytes, int offset) compareKeys() argument 382 compareKeys(CharSequence key, byte[] bytes, int offset) compareKeys() argument 558 readHeaderAndDataVersion(ByteBuffer bytes, int dataFormat, Authenticate authenticate) readHeaderAndDataVersion() argument 577 readHeader(ByteBuffer bytes, int dataFormat, Authenticate authenticate) readHeader() argument 654 skipBytes(ByteBuffer bytes, int skipLength) skipBytes() argument 660 getBytes(ByteBuffer bytes, int length, int additionalSkipLength) getBytes() argument 669 getString(ByteBuffer bytes, int length, int additionalSkipLength) getString() argument 676 getChars(ByteBuffer bytes, int length, int additionalSkipLength) getChars() argument 683 getShorts(ByteBuffer bytes, int length, int additionalSkipLength) getShorts() argument 690 getInts(ByteBuffer bytes, int length, int additionalSkipLength) getInts() argument 697 getLongs(ByteBuffer bytes, int length, int additionalSkipLength) getLongs() argument 707 sliceWithOrder(ByteBuffer bytes) sliceWithOrder() argument [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf/ |
H A D | ByteString.cs | 50 /// Immutable array of bytes.
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() 99 /// Returns the length of this ByteString in bytes 164 FromBase64(string bytes) FromBase64() argument 227 CopyFrom(params byte[] bytes) CopyFrom() argument 235 CopyFrom(byte[] bytes, int offset, int count) CopyFrom() argument 248 CopyFrom(ReadOnlySpan<byte> bytes) CopyFrom() argument [all...] |
/third_party/elfutils/libdw/ |
H A 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/ |
H A D | parse.rs | 1 /// Find and parse sign and get remaining bytes. 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..] 63 fn rtrim_zero<'a>(bytes [all...] |
/third_party/skia/fuzz/ |
H A D | FuzzMain.cpp | 33 static DEFINE_string2(bytes, b, "", "A path to a file or a directory. If a file, the " 34 "contents will be used as the fuzz bytes. If a directory, all files " 35 "in the directory will be used as fuzz bytes for the fuzzer, one at a " 44 static constexpr char g_type_message[] = "How to interpret --bytes, one of:\n" 79 static void fuzz_api(sk_sp<SkData> bytes, SkString name); 147 sk_sp<SkData> bytes(SkData::MakeFromFileName(path.c_str())); in fuzz_file() 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, nam in fuzz_file() 351 fuzz_json(sk_sp<SkData> bytes) fuzz_json() argument 359 fuzz_skottie_json(sk_sp<SkData> bytes) fuzz_skottie_json() argument 368 fuzz_svg_dom(sk_sp<SkData> bytes) fuzz_svg_dom() argument 379 calculate_option(SkData* bytes) calculate_option() argument 395 fuzz_api(sk_sp<SkData> bytes, SkString name) fuzz_api() argument 418 fuzz_animated_img(sk_sp<SkData> bytes) fuzz_animated_img() argument 428 fuzz_image_decode(sk_sp<SkData> bytes) fuzz_image_decode() argument 438 fuzz_image_decode_incremental(sk_sp<SkData> bytes) fuzz_image_decode_incremental() argument 448 fuzz_android_codec(sk_sp<SkData> bytes) fuzz_android_codec() argument 463 fuzz_img(sk_sp<SkData> bytes, uint8_t scale, uint8_t mode) fuzz_img() argument 700 fuzz_skp(sk_sp<SkData> bytes) fuzz_skp() argument 705 fuzz_color_deserialize(sk_sp<SkData> bytes) fuzz_color_deserialize() argument 716 fuzz_path_deserialize(sk_sp<SkData> bytes) fuzz_path_deserialize() argument 724 fuzz_region_deserialize(sk_sp<SkData> bytes) fuzz_region_deserialize() argument 734 fuzz_textblob_deserialize(sk_sp<SkData> bytes) fuzz_textblob_deserialize() argument 742 fuzz_region_set_path(sk_sp<SkData> bytes) fuzz_region_set_path() argument 750 fuzz_filter_fuzz(sk_sp<SkData> bytes) fuzz_filter_fuzz() argument 757 fuzz_skruntimeeffect(sk_sp<SkData> bytes) fuzz_skruntimeeffect() argument 767 fuzz_sksl2glsl(sk_sp<SkData> bytes) fuzz_sksl2glsl() argument 777 fuzz_sksl2spirv(sk_sp<SkData> bytes) fuzz_sksl2spirv() argument 787 fuzz_sksl2metal(sk_sp<SkData> bytes) fuzz_sksl2metal() argument 797 fuzz_sksl2pipeline(sk_sp<SkData> bytes) fuzz_sksl2pipeline() argument 807 fuzz_skdescriptor_deserialize(sk_sp<SkData> bytes) fuzz_skdescriptor_deserialize() argument [all...] |
/third_party/rust/crates/minimal-lexical/tests/ |
H A D | integration_tests.rs | 1 /// Find and parse sign and get remaining bytes. 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..] 63 fn rtrim_zero<'a>(bytes [all...] |
/third_party/python/Lib/ |
H A D | telnetlib.py | 53 IAC = bytes([255]) # "Interpret As Command" 54 DONT = bytes([254]) 55 DO = bytes([253]) 56 WONT = bytes([252]) 57 WILL = bytes([251]) 58 theNULL = bytes([0]) 60 SE = bytes([240]) # Subnegotiation End 61 NOP = bytes([241]) # No Operation 62 DM = bytes([242]) # Data Mark 63 BRK = bytes([24 [all...] |
/third_party/cups-filters/cupsfilters/ |
H A D | check.c | 14 * cupsCheckBytes() - Check to see if all bytes are zero. 15 * cupsCheckValue() - Check to see if all bytes match the given value. 26 * 'cupsCheckBytes()' - Check to see if all bytes are zero. 30 cupsCheckBytes(const unsigned char *bytes, /* I - Bytes to check */ in cupsCheckBytes() argument 31 int length) /* I - Number of bytes to check */ in cupsCheckBytes() 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() 70 cupsCheckValue(const unsigned char *bytes, int length, const unsigned char value) cupsCheckValue() argument [all...] |
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/ |
H A D | _common.rs | 6 /// Find and parse sign and get remaining bytes. 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..] 68 fn rtrim_zero<'a>(bytes [all...] |
/third_party/rust/crates/minimal-lexical/examples/ |
H A D | simple.rs | 3 //! This works on input bytes, however, it could be easily adapted to use 4 //! `io::Read`, or any iterator over bytes. Since floats can only include 6 //! remaining bytes properly on UTF-8 boundaries. 48 /// Find and parse sign and get remaining bytes. 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 [all...] |
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-random/ |
H A D | _common.rs | 20 /// Find and parse sign and get remaining bytes. 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..] 82 fn rtrim_zero<'a>(bytes [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
H A D | MessageParsingHelpers.cs | 42 public static void AssertReadingMessage<T>(MessageParser<T> parser, byte[] bytes, Action<T> assert) where T : IMessage<T> 44 var parsedStream = parser.ParseFrom(bytes); 47 var parsedBuffer = parser.ParseFrom(new ReadOnlySequence<byte>(bytes)); 51 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes)); 57 public static void AssertReadingMessage(MessageParser parser, byte[] bytes, Action<IMessage> assert) in AssertReadingMessage() argument 59 var parsedStream = parser.ParseFrom(bytes); in AssertReadingMessage() 62 var parsedBuffer = parser.ParseFrom(new ReadOnlySequence<byte>(bytes)); in AssertReadingMessage() 66 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes)); in AssertReadingMessage() 72 public static void AssertReadingMessageThrows<TMessage, TException>(MessageParser<TMessage> parser, byte[] bytes) 76 Assert.Throws<TException>(() => parser.ParseFrom(bytes)); [all...] |
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/ |
H A D | main.rs | 13 /// Find and parse sign and get remaining bytes. 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..] 75 fn rtrim_zero<'a>(bytes [all...] |
/third_party/backends/backend/ |
H A D | ricoh.h | 110 _lto2b(SANE_Int val, SANE_Byte *bytes) in _lto2b() argument 113 bytes[0] = (val >> 8) & 0xff; in _lto2b() 114 bytes[1] = val & 0xff; in _lto2b() 118 _lto3b(SANE_Int val, SANE_Byte *bytes) in _lto3b() argument 121 bytes[0] = (val >> 16) & 0xff; in _lto3b() 122 bytes[1] = (val >> 8) & 0xff; in _lto3b() 123 bytes[2] = val & 0xff; in _lto3b() 127 _lto4b(SANE_Int val, SANE_Byte *bytes) in _lto4b() argument 130 bytes[0] = (val >> 24) & 0xff; in _lto4b() 131 bytes[ in _lto4b() 137 _2btol(SANE_Byte *bytes) _2btol() argument 147 _3btol(SANE_Byte *bytes) _3btol() argument 158 _4btol(SANE_Byte *bytes) _4btol() argument [all...] |
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A 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() 87 // Bad trailing bytes in testInvalid_4BytesSamples() 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, byte in testInvalidBufferSlice() 186 assertInvalid(byte[] bytes) assertInvalid() argument 233 assertInvalidSlice(byte[] bytes, int index, int size) assertInvalidSlice() argument [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | BytesTrie.java | 35 * The BytesTrie object will not read more bytes than 131 private byte[] bytes; field in BytesTrie.State 145 state.bytes=bytes_; in saveState() 165 if(bytes_==state.bytes && bytes_!=null && root_==state.root) { in resetToState() 217 * @return true if the input bytes/units so far are part of a matching string/byte sequence. 224 * @return true if there is a value for the input bytes/units so far. 365 // No further matching bytes. in next() 372 // Match length+1 bytes. in next() 382 // No further matching bytes. in next() 435 * @return The number of bytes whic 566 private byte[] bytes; global() field in BytesTrie.Entry 764 readValue(byte[] bytes, int pos, int leadByte) readValue() argument 792 skipValue(byte[] bytes, int pos) skipValue() argument 803 jumpByDelta(byte[] bytes, int pos) jumpByDelta() argument 822 skipDelta(byte[] bytes, int pos) skipDelta() argument 945 findUniqueValueFromBranch(byte[] bytes, int pos, int length, long uniqueValue) findUniqueValueFromBranch() argument 985 findUniqueValue(byte[] bytes, int pos, long uniqueValue) findUniqueValue() argument 1020 getNextBranchBytes(byte[] bytes, int pos, int length, Appendable out) getNextBranchBytes() argument [all...] |
H A D | ByteArrayWrapper.java | 34 public byte[] bytes; field in ByteArrayWrapper 38 * Different from bytes.length, size will be <= bytes.length. 51 // leave bytes null, don't allocate twice in ByteArrayWrapper() 66 this.bytes = bytesToAdopt; in ByteArrayWrapper() 77 bytes = new byte[size]; in ByteArrayWrapper() 78 source.get(bytes,0,size); in ByteArrayWrapper() 86 bytes = new byte[size]; 87 copyBytes(source.bytes, 0, bytes, [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | BytesTrie.java | 36 * The BytesTrie object will not read more bytes than 124 private byte[] bytes; field in BytesTrie.State 137 state.bytes=bytes_; in saveState() 156 if(bytes_==state.bytes && bytes_!=null && root_==state.root) { in resetToState() 204 * @return true if the input bytes/units so far are part of a matching string/byte sequence. 210 * @return true if there is a value for the input bytes/units so far. 345 // No further matching bytes. in next() 352 // Match length+1 bytes. in next() 362 // No further matching bytes. in next() 413 * @return The number of bytes whic 535 private byte[] bytes; global() field in BytesTrie.Entry 729 readValue(byte[] bytes, int pos, int leadByte) readValue() argument 757 skipValue(byte[] bytes, int pos) skipValue() argument 763 jumpByDelta(byte[] bytes, int pos) jumpByDelta() argument 782 skipDelta(byte[] bytes, int pos) skipDelta() argument 905 findUniqueValueFromBranch(byte[] bytes, int pos, int length, long uniqueValue) findUniqueValueFromBranch() argument 945 findUniqueValue(byte[] bytes, int pos, long uniqueValue) findUniqueValue() argument 980 getNextBranchBytes(byte[] bytes, int pos, int length, Appendable out) getNextBranchBytes() argument [all...] |
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
H A D | ByteStringTest.java | 91 byte[] bytes = getTestBytes(); in testSubstring_BeginIndex() 92 ByteString substring = ByteString.copyFrom(bytes).substring(500); in testSubstring_BeginIndex() 94 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex() 98 byte[] bytes = getTestBytes(); in testCopyFrom_BytesOffsetSize() 99 ByteString byteString = ByteString.copyFrom(bytes, 500, 200); in testCopyFrom_BytesOffsetSize() 100 assertTrue("copyFrom sub-range must contain the expected bytes", in testCopyFrom_BytesOffsetSize() 101 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize() 105 byte[] bytes = getTestBytes(); in testCopyFrom_Bytes() 106 ByteString byteString = ByteString.copyFrom(bytes); in testCopyFrom_Bytes() 246 assertReadFromReluctantStream(byte[] bytes, int chunkSize) assertReadFromReluctantStream() argument 264 assertReadFrom(byte[] bytes) assertReadFrom() argument [all...] |
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/ |
H A D | cbor_test.cc | 81 // start bytes. in TEST() 87 std::vector<uint8_t> bytes = {0xd8, 0x5a}; in TEST() local 88 EXPECT_THAT(CheckCBORMessage(SpanFrom(bytes)), in TEST() 90 bytes = {0xd8, 0x5a, 0}; in TEST() 91 EXPECT_THAT(CheckCBORMessage(SpanFrom(bytes)), in TEST() 93 bytes = {0xd8, 0x5a, 0, 0}; in TEST() 94 EXPECT_THAT(CheckCBORMessage(SpanFrom(bytes)), in TEST() 96 bytes = {0xd8, 0x5a, 0, 0, 0}; in TEST() 97 EXPECT_THAT(CheckCBORMessage(SpanFrom(bytes)), in TEST() 99 bytes in TEST() 105 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, 1}; TEST() local 850 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen}; TEST() local 874 std::vector<uint8_t> bytes = {cbor::InitialByteForEnvelope(), TEST() local 910 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 927 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 945 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 958 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, 0}; // envelope TEST() local 975 std::vector<uint8_t> bytes = {0xd8, TEST() local 1001 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, TEST() local 1016 std::vector<uint8_t> bytes; MakeNestedCBOR() local 1035 std::vector<uint8_t> bytes = MakeNestedCBOR(3); TEST() local 1045 std::vector<uint8_t> bytes = MakeNestedCBOR(300); TEST() local 1064 std::vector<uint8_t> bytes = MakeNestedCBOR(301); TEST() local 1074 std::vector<uint8_t> bytes = MakeNestedCBOR(320); TEST() local 1087 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 1105 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 1127 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 1146 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 1167 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 1187 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 1207 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local 1229 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, TEST() local 1262 std::vector<uint8_t> bytes = {0xd8, 0x5a, 0, 0, 0, kPayloadLen, // envelope TEST() local [all...] |
/third_party/protobuf/js/experimental/runtime/kernel/ |
H A D | kernel_test.js | 20 * @param {...number} bytes 23 function createArrayBuffer(...bytes) { 24 return new Uint8Array(bytes).buffer; 60 const bytes = createArrayBuffer(0x08, 0x01); 61 const accessor = Kernel.fromArrayBuffer(bytes); 97 const bytes = createArrayBuffer(0x08, 0x01); 98 const accessor = Kernel.fromArrayBuffer(bytes); 107 const bytes = createArrayBuffer(0x08, 0x01); 108 const accessor = Kernel.fromArrayBuffer(bytes); 132 const bytes [all...] |