/third_party/protobuf/js/binary/ |
D | reader.js | 67 jspb.BinaryReader = function(opt_bytes, opt_start, opt_length) { 72 this.decoder_ = jspb.BinaryDecoder.alloc(opt_bytes, opt_start, opt_length); 84 this.nextField_ = jspb.BinaryConstants.INVALID_FIELD_NUMBER; 91 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID; 111 jspb.BinaryReader.instanceCache_ = []; 123 jspb.BinaryReader.alloc = 125 if (jspb.BinaryReader.instanceCache_.length) { 126 var newReader = jspb.BinaryReader.instanceCache_.pop(); 132 return new jspb.BinaryReader(opt_bytes, opt_start, opt_length); 145 jspb.BinaryReader.prototype.alloc = jspb.BinaryReader.alloc; [all …]
|
D | utils.js | 59 jspb.utils.split64Low = 0; 67 jspb.utils.split64High = 0; 75 jspb.utils.splitUint64 = function(value) { 79 jspb.BinaryConstants.TWO_TO_32) >>> 0; 81 jspb.utils.split64Low = lowBits; 82 jspb.utils.split64High = highBits; 91 jspb.utils.splitInt64 = function(value) { 99 jspb.BinaryConstants.TWO_TO_32); 114 jspb.utils.split64Low = lowBits; 115 jspb.utils.split64High = highBits; [all …]
|
D | encoder.js | 53 jspb.BinaryEncoder = function() { 62 jspb.BinaryEncoder.prototype.length = function() { 70 jspb.BinaryEncoder.prototype.end = function() { 83 jspb.BinaryEncoder.prototype.writeSplitVarint64 = function(lowBits, highBits) { 87 (lowBits < jspb.BinaryConstants.TWO_TO_32)); 89 (highBits < jspb.BinaryConstants.TWO_TO_32)); 108 jspb.BinaryEncoder.prototype.writeSplitFixed64 = function(lowBits, highBits) { 112 (lowBits < jspb.BinaryConstants.TWO_TO_32)); 114 (highBits < jspb.BinaryConstants.TWO_TO_32)); 125 jspb.BinaryEncoder.prototype.writeUnsignedVarint32 = function(value) { [all …]
|
D | constants.js | 66 jspb.ConstBinaryMessage = function() {}; 72 jspb.ConstBinaryMessage.prototype.toDebugString; 81 jspb.ConstBinaryMessage.prototype.toDebugStringInternal; 89 jspb.BinaryMessage = function() {}; 97 jspb.ByteSource; 104 jspb.ScalarFieldType; 114 jspb.RepeatedFieldType; 127 jspb.AnyFieldType; 134 jspb.BuilderFunction; 141 jspb.ClonerFunction; [all …]
|
D | proto_test.js | 124 msg.setOptionalGroup(new proto.jspb.test.TestAllTypes.OptionalGroup()); 126 var submsg = new proto.jspb.test.ForeignMessage(); 129 msg.setOptionalForeignEnum(proto.jspb.test.ForeignEnum.FOREIGN_FOO); 148 msg.setRepeatedGroupList([new proto.jspb.test.TestAllTypes.RepeatedGroup()]); 150 submsg = new proto.jspb.test.ForeignMessage(); 153 msg.setRepeatedForeignEnumList([proto.jspb.test.ForeignEnum.FOREIGN_FOO]); 223 proto.jspb.test.ForeignEnum.FOREIGN_FOO); 228 proto.jspb.test.TestAllTypes.OneofFieldCase.ONEOF_STRING); 255 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]); 277 assertTrue(jspb.Message.equals(original, copy)); [all …]
|
D | decoder.js | 65 jspb.BinaryDecoder = function(opt_bytes, opt_start, opt_length) { 106 jspb.BinaryDecoder.instanceCache_ = []; 118 jspb.BinaryDecoder.alloc = function(opt_bytes, opt_start, opt_length) { 119 if (jspb.BinaryDecoder.instanceCache_.length) { 120 var newDecoder = jspb.BinaryDecoder.instanceCache_.pop(); 126 return new jspb.BinaryDecoder(opt_bytes, opt_start, opt_length); 134 jspb.BinaryDecoder.prototype.free = function() { 136 if (jspb.BinaryDecoder.instanceCache_.length < 100) { 137 jspb.BinaryDecoder.instanceCache_.push(this); 146 jspb.BinaryDecoder.prototype.clone = function() { [all …]
|
D | writer.js | 77 jspb.BinaryWriter = function() { 99 this.encoder_ = new jspb.BinaryEncoder(); 117 jspb.BinaryWriter.prototype.appendUint8Array_ = function(arr) { 132 jspb.BinaryWriter.prototype.beginDelimited_ = function(field) { 133 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED); 149 jspb.BinaryWriter.prototype.endDelimited_ = function(bookmark) { 171 jspb.BinaryWriter.prototype.writeSerializedMessage = function( 184 jspb.BinaryWriter.prototype.maybeWriteSerializedMessage = function( 195 jspb.BinaryWriter.prototype.reset = function() { 207 jspb.BinaryWriter.prototype.getResultBuffer = function() { [all …]
|
D | arith.js | 53 jspb.arith.UInt64 = function(lo, hi) { 73 jspb.arith.UInt64.prototype.cmp = function(other) { 88 jspb.arith.UInt64.prototype.rightShift = function() { 91 return new jspb.arith.UInt64(lo >>> 0, hi >>> 0); 99 jspb.arith.UInt64.prototype.leftShift = function() { 102 return new jspb.arith.UInt64(lo >>> 0, hi >>> 0); 110 jspb.arith.UInt64.prototype.msb = function() { 119 jspb.arith.UInt64.prototype.lsb = function() { 128 jspb.arith.UInt64.prototype.zero = function() { 138 jspb.arith.UInt64.prototype.add = function(other) { [all …]
|
D | utils_test.js | 83 jspb.utils.joinUnsignedDecimalString(0x89e80001, 0x8ac72304); 86 result = jspb.utils.joinUnsignedDecimalString(0xacd05f15, 0x1b69b4b); 89 result = jspb.utils.joinUnsignedDecimalString(0xeb1f0ad2, 0xab54a98c); 92 result = jspb.utils.joinUnsignedDecimalString(0xe3b70cb1, 0x891087b8); 96 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00000000); 99 result = jspb.utils.joinUnsignedDecimalString(0xFFFFFFFF, 0xFFFFFFFF); 105 result = jspb.utils.joinUnsignedDecimalString(low, 0); 112 result = jspb.utils.joinUnsignedDecimalString(0, high); 120 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00100000); 123 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00200000); [all …]
|
D | decoder_test.js | 62 var encoder = new jspb.BinaryEncoder(); 74 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 104 var encoder = new jspb.BinaryEncoder(); 129 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 160 jspb.BinaryDecoder.instanceCache_ = []; 164 jspb.BinaryDecoder.alloc().free(); 166 assertEquals(1, jspb.BinaryDecoder.instanceCache_.length); 171 var decoder1 = jspb.BinaryDecoder.alloc(); 172 var decoder2 = jspb.BinaryDecoder.alloc(); 173 var decoder3 = jspb.BinaryDecoder.alloc(); [all …]
|
D | reader_test.js | 57 var writer = new jspb.BinaryWriter(); 65 jspb.BinaryReader.instanceCache_ = []; 70 var decoder1 = jspb.BinaryDecoder.alloc(); 71 var decoder2 = jspb.BinaryDecoder.alloc(); 72 var decoder3 = jspb.BinaryDecoder.alloc(); 77 assertEquals(3, jspb.BinaryDecoder.instanceCache_.length); 78 assertEquals(0, jspb.BinaryReader.instanceCache_.length); 83 jspb.BinaryReader.alloc().free(); 85 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 86 assertEquals(1, jspb.BinaryReader.instanceCache_.length); [all …]
|
/third_party/protobuf/js/ |
D | message_test.js | 128 stubs.set(jspb.Message, 'SERIALIZE_EMPTY_TRAILING_FIELDS', false); 136 var empty1 = new proto.jspb.test.Empty([]); 137 var empty2 = new proto.jspb.test.Empty([]); 143 var response = new proto.jspb.test.EnumContainer([]); 144 response.setOuterEnum(proto.jspb.test.OuterEnum.FOO); 145 assertEquals(proto.jspb.test.OuterEnum.FOO, response.getOuterEnum()); 149 var data = new proto.jspb.test.DefaultValues([]); 157 var foo = new proto.jspb.test.Complex(data1); 158 var bar = new proto.jspb.test.Complex(data2); 192 var foo = new proto.jspb.test.Complex([ [all …]
|
D | message.js | 90 jspb.ExtensionFieldInfo = function(fieldNumber, fieldName, ctor, toObjectFn, 117 jspb.ExtensionFieldBinaryInfo = function(fieldInfo, binaryReaderFn, binaryWriterFn, 136 jspb.ExtensionFieldInfo.prototype.isMessageType = function() { 161 jspb.Message = function() { 173 jspb.Message.GENERATE_TO_OBJECT = 186 jspb.Message.GENERATE_FROM_OBJECT = goog.define( 195 jspb.Message.GENERATE_TO_STRING = 204 jspb.Message.ASSUME_LOCAL_ARRAYS = 215 jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS = 224 jspb.Message.SUPPORTS_UINT8ARRAY_ = (typeof Uint8Array == 'function'); [all …]
|
D | debug_test.js | 54 var message = new proto.jspb.test.Simple1(); 60 }, jspb.debug.dump(message)); 70 }, jspb.debug.dump(message)); 78 }, jspb.debug.dump(message)); 85 var message = new proto.jspb.test.TestAllTypes(); 88 assertEquals(jspb.debug.dump(message)['optionalBytes'], bytes); 95 var extension = new proto.jspb.test.IsExtension(); 97 var extendable = new proto.jspb.test.HasExtensions(); 101 extendable.setExtension(proto.jspb.test.IsExtension.extField, extension); 115 }, jspb.debug.dump(extendable)); [all …]
|
/third_party/protobuf/js/compatibility_tests/v3.0.0/ |
D | message_test.js | 86 var empty1 = new proto.jspb.test.Empty([]); 87 var empty2 = new proto.jspb.test.Empty([]); 93 var response = new proto.jspb.test.EnumContainer([]); 94 response.setOuterEnum(proto.jspb.test.OuterEnum.FOO); 95 assertEquals(proto.jspb.test.OuterEnum.FOO, response.getOuterEnum()); 99 var data = new proto.jspb.test.DefaultValues([]); 107 var foo = new proto.jspb.test.Complex(data1); 108 var bar = new proto.jspb.test.Complex(data2); 140 var foo = new proto.jspb.test.Complex([ 143 var bar = new proto.jspb.test.Complex([ [all …]
|
/third_party/protobuf/js/compatibility_tests/v3.1.0/ |
D | message_test.js | 86 var empty1 = new proto.jspb.test.Empty([]); 87 var empty2 = new proto.jspb.test.Empty([]); 93 var response = new proto.jspb.test.EnumContainer([]); 94 response.setOuterEnum(proto.jspb.test.OuterEnum.FOO); 95 assertEquals(proto.jspb.test.OuterEnum.FOO, response.getOuterEnum()); 99 var data = new proto.jspb.test.DefaultValues([]); 107 var foo = new proto.jspb.test.Complex(data1); 108 var bar = new proto.jspb.test.Complex(data2); 140 var foo = new proto.jspb.test.Complex([ 143 var bar = new proto.jspb.test.Complex([ [all …]
|
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/ |
D | proto_test.js | 120 msg.setOptionalGroup(new proto.jspb.test.TestAllTypes.OptionalGroup()); 122 var submsg = new proto.jspb.test.ForeignMessage(); 125 msg.setOptionalForeignEnum(proto.jspb.test.ForeignEnum.FOREIGN_FOO); 144 msg.setRepeatedGroupList([new proto.jspb.test.TestAllTypes.RepeatedGroup()]); 146 submsg = new proto.jspb.test.ForeignMessage(); 149 msg.setRepeatedForeignEnumList([proto.jspb.test.ForeignEnum.FOREIGN_FOO]); 197 assertTrue(jspb.Message.equals(original, copy)); 221 proto.jspb.test.ForeignEnum.FOREIGN_FOO); 226 proto.jspb.test.TestAllTypes.OneofFieldCase.ONEOF_STRING); 253 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]); [all …]
|
D | utils_test.js | 83 jspb.utils.joinUnsignedDecimalString(0x89e80001, 0x8ac72304); 86 result = jspb.utils.joinUnsignedDecimalString(0xacd05f15, 0x1b69b4b); 89 result = jspb.utils.joinUnsignedDecimalString(0xeb1f0ad2, 0xab54a98c); 92 result = jspb.utils.joinUnsignedDecimalString(0xe3b70cb1, 0x891087b8); 96 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00000000); 99 result = jspb.utils.joinUnsignedDecimalString(0xFFFFFFFF, 0xFFFFFFFF); 105 result = jspb.utils.joinUnsignedDecimalString(low, 0); 112 result = jspb.utils.joinUnsignedDecimalString(0, high); 120 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00100000); 123 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00200000); [all …]
|
D | reader_test.js | 57 var writer = new jspb.BinaryWriter(); 65 jspb.BinaryReader.instanceCache_ = []; 70 var decoder1 = jspb.BinaryDecoder.alloc(); 71 var decoder2 = jspb.BinaryDecoder.alloc(); 72 var decoder3 = jspb.BinaryDecoder.alloc(); 77 assertEquals(3, jspb.BinaryDecoder.instanceCache_.length); 78 assertEquals(0, jspb.BinaryReader.instanceCache_.length); 83 jspb.BinaryReader.alloc().free(); 85 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 86 assertEquals(1, jspb.BinaryReader.instanceCache_.length); [all …]
|
D | decoder_test.js | 61 var encoder = new jspb.BinaryEncoder(); 73 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 103 var encoder = new jspb.BinaryEncoder(); 128 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 164 jspb.BinaryDecoder.instanceCache_ = []; 168 jspb.BinaryDecoder.alloc().free(); 170 assertEquals(1, jspb.BinaryDecoder.instanceCache_.length); 175 var decoder1 = jspb.BinaryDecoder.alloc(); 176 var decoder2 = jspb.BinaryDecoder.alloc(); 177 var decoder3 = jspb.BinaryDecoder.alloc(); [all …]
|
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/ |
D | proto_test.js | 120 msg.setOptionalGroup(new proto.jspb.test.TestAllTypes.OptionalGroup()); 122 var submsg = new proto.jspb.test.ForeignMessage(); 125 msg.setOptionalForeignEnum(proto.jspb.test.ForeignEnum.FOREIGN_FOO); 144 msg.setRepeatedGroupList([new proto.jspb.test.TestAllTypes.RepeatedGroup()]); 146 submsg = new proto.jspb.test.ForeignMessage(); 149 msg.setRepeatedForeignEnumList([proto.jspb.test.ForeignEnum.FOREIGN_FOO]); 197 assertTrue(jspb.Message.equals(original, copy)); 221 proto.jspb.test.ForeignEnum.FOREIGN_FOO); 226 proto.jspb.test.TestAllTypes.OneofFieldCase.ONEOF_STRING); 253 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]); [all …]
|
D | utils_test.js | 83 jspb.utils.joinUnsignedDecimalString(0x89e80001, 0x8ac72304); 86 result = jspb.utils.joinUnsignedDecimalString(0xacd05f15, 0x1b69b4b); 89 result = jspb.utils.joinUnsignedDecimalString(0xeb1f0ad2, 0xab54a98c); 92 result = jspb.utils.joinUnsignedDecimalString(0xe3b70cb1, 0x891087b8); 96 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00000000); 99 result = jspb.utils.joinUnsignedDecimalString(0xFFFFFFFF, 0xFFFFFFFF); 105 result = jspb.utils.joinUnsignedDecimalString(low, 0); 112 result = jspb.utils.joinUnsignedDecimalString(0, high); 120 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00100000); 123 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00200000); [all …]
|
D | reader_test.js | 57 var writer = new jspb.BinaryWriter(); 65 jspb.BinaryReader.instanceCache_ = []; 70 var decoder1 = jspb.BinaryDecoder.alloc(); 71 var decoder2 = jspb.BinaryDecoder.alloc(); 72 var decoder3 = jspb.BinaryDecoder.alloc(); 77 assertEquals(3, jspb.BinaryDecoder.instanceCache_.length); 78 assertEquals(0, jspb.BinaryReader.instanceCache_.length); 83 jspb.BinaryReader.alloc().free(); 85 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 86 assertEquals(1, jspb.BinaryReader.instanceCache_.length); [all …]
|
D | decoder_test.js | 61 var encoder = new jspb.BinaryEncoder(); 73 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 103 var encoder = new jspb.BinaryEncoder(); 128 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 153 jspb.BinaryDecoder.instanceCache_ = []; 157 jspb.BinaryDecoder.alloc().free(); 159 assertEquals(1, jspb.BinaryDecoder.instanceCache_.length); 164 var decoder1 = jspb.BinaryDecoder.alloc(); 165 var decoder2 = jspb.BinaryDecoder.alloc(); 166 var decoder3 = jspb.BinaryDecoder.alloc(); [all …]
|
/third_party/grpc/examples/node/static_codegen/route_guide/ |
D | route_guide_pb.js | 8 var jspb = require('google-protobuf'); variable 9 var goog = jspb; 29 jspb.Message.initialize(this, opt_data, 0, -1, null, null); 31 goog.inherits(proto.routeguide.Point, jspb.Message); 37 if (jspb.Message.GENERATE_TO_OBJECT) { 81 var reader = new jspb.BinaryReader(bytes); 134 var writer = new jspb.BinaryWriter(); 169 return /** @type {!proto.routeguide.Point} */ (jspb.Message.cloneMessage(this)); 178 return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0)); 184 jspb.Message.setField(this, 1, value); [all …]
|