/third_party/protobuf/js/experimental/runtime/kernel/ |
D | buffer_decoder_test.js | 22 const bufferDecoder = constant 24 expect(bufferDecoder.cursor()).toBe(0); 25 bufferDecoder.setCursor(1); 26 expect(bufferDecoder.cursor()).toBe(1); 32 const bufferDecoder = constant 34 bufferDecoder.setCursor(1); 35 bufferDecoder.skip(1); 36 expect(bufferDecoder.cursor()).toBe(2); 42 const bufferDecoder = constant 44 bufferDecoder.skipVarint(); [all …]
|
D | reader.js | 23 function readBool(bufferDecoder, start) { argument 24 const {lowBits, highBits} = bufferDecoder.getVarint(start); 35 function readBytes(bufferDecoder, start) { argument 36 return readDelimited(bufferDecoder, start).asByteString(); 46 function readInt32(bufferDecoder, start) { argument 50 return bufferDecoder.getUnsignedVarint32At(start) | 0; 60 function readInt64(bufferDecoder, start) { argument 61 const {lowBits, highBits} = bufferDecoder.getVarint(start); 72 function readFixed32(bufferDecoder, start) { argument 73 return bufferDecoder.getUint32(start); [all …]
|
D | reader_test.js | 49 expect(() => reader.readBool(pair.bufferDecoder, 0)).toThrow(); 52 pair.bufferDecoder, pair.bufferDecoder.startIndex()); 61 const bufferDecoder = createBufferDecoder(); constant 62 expect(() => reader.readBytes(bufferDecoder, 0)).toThrow(); 66 const bufferDecoder = createBufferDecoder(3, 1, 2, 3); constant 67 const byteString = reader.readBytes(bufferDecoder, 0); 75 const bufferDecoder = createBufferDecoder(); constant 76 expect(() => reader.readDouble(bufferDecoder, 0)).toThrow(); 81 const d = reader.readDouble(pair.bufferDecoder, 0); 89 const bufferDecoder = createBufferDecoder(); constant [all …]
|
D | tag.js | 48 function getTagLength(bufferDecoder, start, wireType, fieldNumber) { argument 49 bufferDecoder.setCursor(start); 50 skipField(bufferDecoder, wireType, fieldNumber); 51 return bufferDecoder.cursor() - start; 78 function skipField(bufferDecoder, wireType, fieldNumber) { argument 82 bufferDecoder.cursor(), bufferDecoder.endIndex()); 83 bufferDecoder.skipVarint(); 86 bufferDecoder.skip(8); 90 bufferDecoder.cursor(), bufferDecoder.endIndex()); 91 const length = bufferDecoder.getUnsignedVarint32(); [all …]
|
D | tag_test.js | 24 const bufferDecoder = constant 26 skipField(bufferDecoder, WireType.VARINT, 1); 27 expect(bufferDecoder.cursor()).toBe(2); 31 const bufferDecoder = constant 33 bufferDecoder.setCursor(2); 35 expect(() => skipField(bufferDecoder, WireType.VARINT, 1)).toThrowError(); 40 const bufferDecoder = BufferDecoder.fromArrayBuffer( constant 42 skipField(bufferDecoder, WireType.FIXED64, 1); 43 expect(bufferDecoder.cursor()).toBe(8); 47 const bufferDecoder = constant [all …]
|
D | double_test_pairs.js | 20 bufferDecoder: property 26 bufferDecoder: property 32 bufferDecoder: property 38 bufferDecoder: property 45 bufferDecoder: property 52 bufferDecoder: property 58 bufferDecoder: property 64 bufferDecoder: property 70 bufferDecoder: property 76 bufferDecoder: property [all …]
|
D | float_test_pairs.js | 20 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x00, 0x00), property 25 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x00, 0x80) property 30 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x80, 0x3F) property 35 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x80, 0xBF) property 40 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x00, 0x40) property 45 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0x7F, 0x7F) property 51 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x80, 0x00) property 57 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x80, 0x7F) property 62 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x80, 0xFF) property 67 bufferDecoder: createBufferDecoder(0x00, 0x00, 0xC0, 0x3F) property [all …]
|
D | bool_test_pairs.js | 20 bufferDecoder: createBufferDecoder(0x01), property 25 bufferDecoder: createBufferDecoder(0x00), property 30 bufferDecoder: createBufferDecoder(0x80, 0x01), property 36 bufferDecoder: createBufferDecoder(0x80, 0x00), property 42 bufferDecoder: createBufferDecoder( property 49 bufferDecoder: createBufferDecoder( property 56 bufferDecoder: createBufferDecoder( property 63 bufferDecoder: createBufferDecoder( property 70 bufferDecoder: createBufferDecoder( property
|
D | int32_test_pairs.js | 20 bufferDecoder: createBufferDecoder(0x00), property 25 bufferDecoder: createBufferDecoder(0x01), property 30 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0xFF, 0x0F), property 37 bufferDecoder: createBufferDecoder( property 43 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0xFF, 0x07), property 49 bufferDecoder: createBufferDecoder(0x80, 0x80, 0x80, 0x80, 0x08), property 56 bufferDecoder: createBufferDecoder( property 62 bufferDecoder: createBufferDecoder( property
|
D | uint32_test_pairs.js | 21 bufferDecoder: createBufferDecoder(0x00), property 26 bufferDecoder: createBufferDecoder(0x01), property 31 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0xFF, 0x07), property 36 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0xFF, 0x0F), property 41 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0xFF, 0x0F), property 47 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x01), property 53 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0xFF, 0x10), property 59 bufferDecoder: createBufferDecoder( property
|
D | sint32_test_pairs.js | 20 bufferDecoder: createBufferDecoder(0x00), property 25 bufferDecoder: createBufferDecoder(0x02), property 30 bufferDecoder: createBufferDecoder(0x01), property 35 bufferDecoder: createBufferDecoder(0x04), property 40 bufferDecoder: createBufferDecoder(0x03), property 45 bufferDecoder: createBufferDecoder(0xFE, 0xFF, 0xFF, 0xFF, 0x0F), property 51 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0xFF, 0x0F), property
|
D | sint64_test_pairs.js | 21 bufferDecoder: createBufferDecoder(0x00), property 26 bufferDecoder: createBufferDecoder(0x02), property 31 bufferDecoder: createBufferDecoder(0x01), property 36 bufferDecoder: createBufferDecoder(0x04), property 41 bufferDecoder: createBufferDecoder(0x03), property 46 bufferDecoder: createBufferDecoder( property 53 bufferDecoder: createBufferDecoder( property
|
D | indexer.js | 37 function buildIndex(bufferDecoder, pivot) { argument 38 bufferDecoder.setCursor(bufferDecoder.startIndex()); 41 while (bufferDecoder.hasNext()) { 42 const tag = bufferDecoder.getUnsignedVarint32(); 46 addIndexEntry(storage, fieldNumber, wireType, bufferDecoder.cursor()); 47 skipField(bufferDecoder, wireType, fieldNumber);
|
D | int64_test_pairs.js | 21 bufferDecoder: createBufferDecoder(0x00), property 26 bufferDecoder: createBufferDecoder(0x01), property 31 bufferDecoder: createBufferDecoder( property 37 bufferDecoder: createBufferDecoder( property 44 bufferDecoder: createBufferDecoder( property 50 bufferDecoder: createBufferDecoder( property
|
D | packed_bool_test_pairs.js | 17 bufferDecoder: createBufferDecoder(0x00), 23 bufferDecoder: createBufferDecoder(0x01, 0x01), 28 bufferDecoder: createBufferDecoder(0x02, 0x80, 0x01), 34 bufferDecoder: createBufferDecoder(0x02, 0x01, 0x00), 39 bufferDecoder: createBufferDecoder(
|
D | sfixed32_test_pairs.js | 20 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x00, 0x00), property 25 bufferDecoder: createBufferDecoder(0x01, 0x00, 0x00, 0x00) property 30 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0xFF), property 35 bufferDecoder: createBufferDecoder(0xFF, 0xFF, 0xFF, 0x7F) property 40 bufferDecoder: createBufferDecoder(0x00, 0x00, 0x00, 0x80) property
|
D | sfixed64_test_pairs.js | 21 bufferDecoder: property 27 bufferDecoder: property 33 bufferDecoder: property 39 bufferDecoder: property 45 bufferDecoder: property
|
D | writer_test.js | 261 .toEqual(pair.bufferDecoder.asUint8Array()); 295 expect(buffer.subarray(1, 5)).toEqual(pair.bufferDecoder.asUint8Array()); 314 expect(buffer.subarray(1, 5)).toEqual(pair.bufferDecoder.asUint8Array()); 349 .toEqual(pair.bufferDecoder.asUint8Array()); 374 expect(buffer.subarray(1, 5)).toEqual(pair.bufferDecoder.asUint8Array()); 393 expect(buffer.subarray(1, 9)).toEqual(pair.bufferDecoder.asUint8Array()); 413 .toEqual(pair.bufferDecoder.asUint8Array()); 434 .toEqual(pair.bufferDecoder.asUint8Array()); 455 .toEqual(pair.bufferDecoder.asUint8Array()); 476 .toEqual(pair.bufferDecoder.asUint8Array()); [all …]
|
D | packed_double_test_pairs.js | 17 bufferDecoder: createBufferDecoder(0x00), 23 bufferDecoder: createBufferDecoder( 29 bufferDecoder: createBufferDecoder(
|
D | packed_uint32_test_pairs.js | 17 bufferDecoder: createBufferDecoder(0x00), 23 bufferDecoder: createBufferDecoder(0x01, 0x01), 28 bufferDecoder: createBufferDecoder(0x02, 0x01, 0x00),
|
D | packed_fixed32_test_pairs.js | 17 bufferDecoder: createBufferDecoder(0x00), 23 bufferDecoder: createBufferDecoder(0x04, 0x01, 0x00, 0x00, 0x00), 28 bufferDecoder: createBufferDecoder(
|
D | packed_sint32_test_pairs.js | 17 bufferDecoder: createBufferDecoder(0x00), 23 bufferDecoder: createBufferDecoder(0x01, 0x01), 28 bufferDecoder: createBufferDecoder(0x02, 0x01, 0x00),
|
D | packed_float_test_pairs.js | 17 bufferDecoder: createBufferDecoder(0x00), 23 bufferDecoder: createBufferDecoder(0x04, 0x00, 0x00, 0x80, 0x3F), 28 bufferDecoder: createBufferDecoder(
|
D | packed_sfixed32_test_pairs.js | 17 bufferDecoder: createBufferDecoder(0x00), 23 bufferDecoder: createBufferDecoder(0x04, 0x01, 0x00, 0x00, 0x00), 28 bufferDecoder: createBufferDecoder(
|
D | packed_int32_test_pairs.js | 17 bufferDecoder: createBufferDecoder(0x00), 23 bufferDecoder: createBufferDecoder(0x01, 0x01), 28 bufferDecoder: createBufferDecoder(0x02, 0x01, 0x00),
|