Home
last modified time | relevance | path

Searched refs:wireType (Results 1 – 25 of 41) sorted by relevance

12

/external/cronet/third_party/protobuf/js/experimental/runtime/kernel/
Dtag.js33 function createTag(wireType, fieldNumber) { argument
34 return (fieldNumber << 3 | wireType) >>> 0;
48 function getTagLength(bufferDecoder, start, wireType, fieldNumber) { argument
50 skipField(bufferDecoder, wireType, fieldNumber);
78 function skipField(bufferDecoder, wireType, fieldNumber) { argument
79 switch (wireType) {
102 throw new Error(`Unexpected wire type: ${wireType}`);
122 const wireType = tagToWireType(tag);
125 if (wireType === WireType.END_GROUP) {
131 skipField(bufferDecoder, wireType, fieldNumber);
Dindexer.js21 function addIndexEntry(storage, fieldNumber, wireType, startIndex) { argument
24 field.addIndexEntry(wireType, startIndex);
26 storage.set(fieldNumber, Field.fromFirstIndexEntry(wireType, startIndex));
43 const wireType = tagToWireType(tag);
46 addIndexEntry(storage, fieldNumber, wireType, bufferDecoder.cursor());
47 skipField(bufferDecoder, wireType, fieldNumber);
Dfield.js44 static fromFirstIndexEntry(wireType, startIndex) { argument
45 return new Field([Field.encodeIndexEntry(wireType, startIndex)]);
64 static encodeIndexEntry(wireType, startIndex) { argument
65 return startIndex << WIRE_TYPE_LENGTH_BITS | wireType;
109 addIndexEntry(wireType, startIndex) { argument
111 .push(Field.encodeIndexEntry(wireType, startIndex));
Dwriter.js93 writeTag(fieldNumber, wireType) { argument
95 checkWireType(wireType);
96 const tag = createTag(wireType, fieldNumber);
453 writeBufferDecoder(bufferDecoder, start, wireType, fieldNumber) { argument
456 getTagLength(bufferDecoder, start, wireType, fieldNumber);
/external/truth/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/
DUnknownFieldDescriptor.java67 private final int wireType; field in UnknownFieldDescriptor.Type
69 Type(int wireType) { in Type() argument
70 this.wireType = wireType; in Type()
77 final int wireType() { in wireType() method in UnknownFieldDescriptor.Type
78 return wireType; in wireType()
/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DWireFormat.java76 static int makeTag(final int fieldNumber, final int wireType) { in makeTag() argument
77 return (fieldNumber << TAG_TYPE_BITS) | wireType; in makeTag()
151 FieldType(final JavaType javaType, final int wireType) { in FieldType() argument
153 this.wireType = wireType; in FieldType()
157 private final int wireType; field in WireFormat.FieldType
164 return wireType; in getWireType()
DMessageSchema.java4462 final int wireType = tag & 0x7; in decodeMapEntry() local
4465 if (wireType == metadata.keyType.getWireType()) { in decodeMapEntry()
4473 if (wireType == metadata.valueType.getWireType()) { in decodeMapEntry()
4506 int wireType, in parseRepeatedField() argument
4524 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseRepeatedField()
4526 } else if (wireType == WireFormat.WIRETYPE_FIXED64) { in parseRepeatedField()
4532 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseRepeatedField()
4534 } else if (wireType == WireFormat.WIRETYPE_FIXED32) { in parseRepeatedField()
4542 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseRepeatedField()
4544 } else if (wireType == WireFormat.WIRETYPE_VARINT) { in parseRepeatedField()
[all …]
DMessageSetSchema.java186 final int wireType = WireFormat.getTagWireType(tag); in mergeFrom() local
189 if (wireType == WireFormat.WIRETYPE_VARINT) { in mergeFrom()
210 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in mergeFrom()
DCodedOutputStream.java230 public abstract void writeTag(int fieldNumber, int wireType) throws IOException; in writeTag() argument
1184 public final void writeTag(final int fieldNumber, final int wireType) throws IOException { in writeTag() argument
1185 writeUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
1577 public void writeTag(final int fieldNumber, final int wireType) throws IOException { in writeTag() argument
1578 writeUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
1911 public void writeTag(int fieldNumber, int wireType) throws IOException { in writeTag() argument
1912 writeUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
2288 final void bufferTag(final int fieldNumber, final int wireType) { in bufferTag() argument
2289 bufferUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in bufferTag()
2417 public void writeTag(final int fieldNumber, final int wireType) throws IOException { in writeTag() argument
[all …]
DGeneratedMessageLite.java649 int wireType = WireFormat.getTagWireType(tag); in parseExtension() local
654 } else if (wireType in parseExtension()
660 && wireType in parseExtension()
769 int wireType = WireFormat.getTagWireType(tag); in parseUnknownFieldAsMessageSet() local
770 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseUnknownFieldAsMessageSet()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DWireFormat.java76 static int makeTag(final int fieldNumber, final int wireType) { in makeTag() argument
77 return (fieldNumber << TAG_TYPE_BITS) | wireType; in makeTag()
151 FieldType(final JavaType javaType, final int wireType) { in FieldType() argument
153 this.wireType = wireType; in FieldType()
157 private final int wireType; field in WireFormat.FieldType
164 return wireType; in getWireType()
DMessageSchema.java4462 final int wireType = tag & 0x7; in decodeMapEntry() local
4465 if (wireType == metadata.keyType.getWireType()) { in decodeMapEntry()
4473 if (wireType == metadata.valueType.getWireType()) { in decodeMapEntry()
4506 int wireType, in parseRepeatedField() argument
4524 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseRepeatedField()
4526 } else if (wireType == WireFormat.WIRETYPE_FIXED64) { in parseRepeatedField()
4532 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseRepeatedField()
4534 } else if (wireType == WireFormat.WIRETYPE_FIXED32) { in parseRepeatedField()
4542 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseRepeatedField()
4544 } else if (wireType == WireFormat.WIRETYPE_VARINT) { in parseRepeatedField()
[all …]
DMessageSetSchema.java186 final int wireType = WireFormat.getTagWireType(tag); in mergeFrom() local
189 if (wireType == WireFormat.WIRETYPE_VARINT) { in mergeFrom()
210 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in mergeFrom()
DCodedOutputStream.java230 public abstract void writeTag(int fieldNumber, int wireType) throws IOException; in writeTag() argument
1182 public final void writeTag(final int fieldNumber, final int wireType) throws IOException { in writeTag() argument
1183 writeUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
1545 public void writeTag(final int fieldNumber, final int wireType) throws IOException { in writeTag() argument
1546 writeUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
1879 public void writeTag(int fieldNumber, int wireType) throws IOException { in writeTag() argument
1880 writeUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
2256 final void bufferTag(final int fieldNumber, final int wireType) { in bufferTag() argument
2257 bufferUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in bufferTag()
2385 public void writeTag(final int fieldNumber, final int wireType) throws IOException { in writeTag() argument
[all …]
DGeneratedMessageLite.java650 int wireType = WireFormat.getTagWireType(tag); in parseExtension() local
655 } else if (wireType in parseExtension()
661 && wireType in parseExtension()
771 int wireType = WireFormat.getTagWireType(tag); in parseUnknownFieldAsMessageSet() local
772 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseUnknownFieldAsMessageSet()
/external/cronet/third_party/protobuf/js/experimental/runtime/internal/
Dchecks.js300 function checkWireType(wireType) { argument
304 checkCriticalWireType(wireType);
312 function checkCriticalWireType(wireType) { argument
316 if (wireType < WireType.VARINT || wireType > WireType.FIXED32) {
317 throw new Error(`Invalid wire type: ${wireType}`);
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/
DWireFormat.cs99 public static uint MakeTag(int fieldNumber, WireType wireType) in MakeTag() argument
101 return (uint) (fieldNumber << TagTypeBits) | (uint) wireType; in MakeTag()
/external/protobuf/csharp/src/Google.Protobuf/
DWireFormat.cs99 public static uint MakeTag(int fieldNumber, WireType wireType) in MakeTag() argument
101 return (uint) (fieldNumber << TagTypeBits) | (uint) wireType; in MakeTag()
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DWireFormatMicro.java69 static int makeTag(final int fieldNumber, final int wireType) { in makeTag() argument
70 return (fieldNumber << TAG_TYPE_BITS) | wireType; in makeTag()
DCodedOutputStreamMicro.java874 public void writeTag(final int fieldNumber, final int wireType) in writeTag() argument
876 writeRawVarint32(WireFormatMicro.makeTag(fieldNumber, wireType)); in writeTag()
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DWireFormatNano.java71 static int makeTag(final int fieldNumber, final int wireType) { in makeTag() argument
72 return (fieldNumber << TAG_TYPE_BITS) | wireType; in makeTag()
/external/protobuf/objectivec/
DGPBWireFormat.m40 uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType) {
41 return (fieldNumber << GPBWireFormatTagTypeBits) | wireType;
DGPBWireFormat.h52 uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType)
/external/cronet/third_party/protobuf/objectivec/
DGPBWireFormat.m40 uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType) {
41 return (fieldNumber << GPBWireFormatTagTypeBits) | wireType;
DGPBWireFormat.h52 uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType)

12