Home
last modified time | relevance | path

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

/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);
Dkernel.js38 const wireType = Field.getWireType(indexEntry);
40 wireType === expected,
41 `Expected wire type: ${expected} but found: ${wireType}`);
78 function readOptional(indexArray, bufferDecoder, readFunc, wireType) { argument
82 validateWireType(indexEntry, wireType);
111 const wireType = Field.getWireType(indexEntry);
113 if (wireType === WireType.DELIMITED) {
/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.java4444 final int wireType = tag & 0x7; in decodeMapEntry() local
4447 if (wireType == metadata.keyType.getWireType()) { in decodeMapEntry()
4455 if (wireType == metadata.valueType.getWireType()) { in decodeMapEntry()
4488 int wireType, in parseRepeatedField() argument
4506 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseRepeatedField()
4508 } else if (wireType == WireFormat.WIRETYPE_FIXED64) { in parseRepeatedField()
4514 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseRepeatedField()
4516 } else if (wireType == WireFormat.WIRETYPE_FIXED32) { in parseRepeatedField()
4524 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseRepeatedField()
4526 } else if (wireType == WireFormat.WIRETYPE_VARINT) { in parseRepeatedField()
[all …]
DCodedOutputStream.java230 public abstract void writeTag(int fieldNumber, int wireType) throws IOException; in writeTag() argument
1173 public final void writeTag(final int fieldNumber, final int wireType) throws IOException { in writeTag() argument
1174 writeUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
1566 public void writeTag(final int fieldNumber, final int wireType) throws IOException { in writeTag() argument
1567 writeUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
1900 public void writeTag(int fieldNumber, int wireType) throws IOException { in writeTag() argument
1901 writeUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
2277 final void bufferTag(final int fieldNumber, final int wireType) { in bufferTag() argument
2278 bufferUInt32NoTag(WireFormat.makeTag(fieldNumber, wireType)); in bufferTag()
2406 public void writeTag(final int fieldNumber, final int wireType) throws IOException { in writeTag() argument
[all …]
DMessageSetSchema.java177 final int wireType = WireFormat.getTagWireType(tag); in mergeFrom() local
180 if (wireType == WireFormat.WIRETYPE_VARINT) { in mergeFrom()
198 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in mergeFrom()
DGeneratedMessageLite.java549 int wireType = WireFormat.getTagWireType(tag); in parseExtension() local
554 } else if (wireType in parseExtension()
560 && wireType in parseExtension()
669 int wireType = WireFormat.getTagWireType(tag); in parseUnknownFieldAsMessageSet() local
670 if (wireType == WireFormat.WIRETYPE_LENGTH_DELIMITED) { in parseUnknownFieldAsMessageSet()
DMessageReflection.java738 final int wireType = WireFormat.getTagWireType(tag); in mergeFieldFrom() local
777 } else if (wireType in mergeFieldFrom()
781 && wireType in mergeFieldFrom()
DBinaryWriter.java864 abstract void writeTag(int fieldNumber, int wireType); in writeTag() argument
1132 void writeTag(int fieldNumber, int wireType) { in writeTag() argument
1133 writeVarint32(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
1669 void writeTag(int fieldNumber, int wireType) { in writeTag() argument
1670 writeVarint32(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
2200 void writeTag(int fieldNumber, int wireType) { in writeTag() argument
2201 writeVarint32(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
2757 void writeTag(int fieldNumber, int wireType) { in writeTag() argument
2758 writeVarint32(WireFormat.makeTag(fieldNumber, wireType)); in writeTag()
DTextFormat.java776 final int number, final int wireType, final List<?> values, final TextGenerator generator) in printUnknownField() argument
781 printUnknownFieldValue(wireType, value, generator); in printUnknownField()
/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}`);
/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()
/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)
DGPBDescriptor_PackagePrivate.h286 @property(nonatomic, readonly) GPBWireFormat wireType;
DGPBMessage.m2097 GPBWireFormat wireType = GPBWireFormatGetTagWireType(tag);
2110 if (extension.wireType == wireType) {
2122 (extension.alternateWireType == wireType)) {
DGPBDescriptor.m1064 - (GPBWireFormat)wireType { method
/third_party/protobuf/js/binary/
Dwriter.js277 function(field, wireType) { argument
279 var x = field * 8 + wireType;