Home
last modified time | relevance | path

Searched refs:WireType (Results 1 – 25 of 57) sorted by relevance

123

/third_party/protobuf/js/experimental/runtime/kernel/
Dtag_test.js7 const WireType = goog.require('protobuf.binary.WireType'); constant
26 skipField(bufferDecoder, WireType.VARINT, 1);
35 expect(() => skipField(bufferDecoder, WireType.VARINT, 1)).toThrowError();
42 skipField(bufferDecoder, WireType.FIXED64, 1);
50 expect(() => skipField(bufferDecoder, WireType.FIXED64, 1))
58 skipField(bufferDecoder, WireType.FIXED32, 1);
66 expect(() => skipField(bufferDecoder, WireType.FIXED32, 1))
75 skipField(bufferDecoder, WireType.DELIMITED, 1);
83 expect(() => skipField(bufferDecoder, WireType.DELIMITED, 1))
92 skipField(bufferDecoder, WireType.START_GROUP, 1);
[all …]
Dindexer_test.js15 const WireType = goog.require('protobuf.binary.WireType'); constant
88 Field.encodeIndexEntry(WireType.VARINT, /* startIndex= */ 1),
89 Field.encodeIndexEntry(WireType.VARINT, /* startIndex= */ 3));
97 Field.encodeIndexEntry(WireType.VARINT, /* startIndex= */ 2));
114 Field.encodeIndexEntry(WireType.VARINT, /* startIndex= */ 1));
130 Field.encodeIndexEntry(WireType.FIXED64, /* startIndex= */ 1),
131 Field.encodeIndexEntry(WireType.FIXED64, /* startIndex= */ 10));
148 Field.encodeIndexEntry(WireType.FIXED64, /* startIndex= */ 1));
166 Field.encodeIndexEntry(WireType.FIXED64, /* startIndex= */ 1));
177 Field.encodeIndexEntry(WireType.DELIMITED, /* startIndex= */ 1),
[all …]
Dwriter.js10 const WireType = goog.require('protobuf.binary.WireType'); constant
143 this.writeTag(fieldNumber, WireType.VARINT);
153 this.writeTag(fieldNumber, WireType.DELIMITED);
177 this.writeTag(fieldNumber, WireType.FIXED64);
199 this.writeTag(fieldNumber, WireType.FIXED32);
221 this.writeTag(fieldNumber, WireType.FIXED32);
244 this.writeTag(fieldNumber, WireType.VARINT);
254 this.writeTag(fieldNumber, WireType.VARINT);
276 this.writeTag(fieldNumber, WireType.FIXED32);
299 this.writeTag(fieldNumber, WireType.FIXED64);
[all …]
Dtag.js4 const WireType = goog.require('protobuf.binary.WireType'); constant
80 case WireType.VARINT:
85 case WireType.FIXED64:
88 case WireType.DELIMITED:
94 case WireType.START_GROUP:
98 case WireType.FIXED32:
125 if (wireType === WireType.END_GROUP) {
Dwriter_test.js14 const WireType = goog.require('protobuf.binary.WireType'); constant
61 writer.writeTag(1, WireType.VARINT);
64 writer.writeTag(0x0FFFFFFF, WireType.VARINT);
68 writer.writeTag(0x10000000, WireType.VARINT);
72 writer.writeTag(0x1FFFFFFF, WireType.VARINT);
79 writer.writeTag(1, WireType.VARINT);
87 expect(() => writer.writeTag(MAX_FIELD_NUMBER + 1, WireType.VARINT))
94 writer.writeTag(MAX_FIELD_NUMBER + 1, WireType.VARINT);
102 expect(() => writer.writeTag(-1, WireType.VARINT))
109 writer.writeTag(-1, WireType.VARINT);
[all …]
Dkernel.js23 const WireType = goog.require('protobuf.binary.WireType'); constant
105 Field.getWireType(indexArray[0]) === WireType.DELIMITED) {
113 if (wireType === WireType.DELIMITED) {
136 validateWireType(indexArray[i], WireType.DELIMITED);
191 validateWireType(indexEntry, WireType.DELIMITED);
196 validateWireType(indexEntry, WireType.DELIMITED);
252 validateWireType(indexEntry, WireType.START_GROUP);
254 const tag = createTag(WireType.START_GROUP, fieldNumber);
257 bufferDecoder, fieldStartIndex, WireType.START_GROUP, fieldNumber);
557 readOptional(indexArray, bytes, reader.readBool, WireType.VARINT));
[all …]
Dwire_type.js7 const WireType = { variable
17 exports = WireType;
/third_party/protobuf/js/binary/
Dreader.js91 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
154 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
214 return this.nextWireType_ == jspb.BinaryConstants.WireType.END_GROUP;
236 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
247 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
288 if (nextWireType != jspb.BinaryConstants.WireType.VARINT &&
289 nextWireType != jspb.BinaryConstants.WireType.FIXED32 &&
290 nextWireType != jspb.BinaryConstants.WireType.FIXED64 &&
291 nextWireType != jspb.BinaryConstants.WireType.DELIMITED &&
292 nextWireType != jspb.BinaryConstants.WireType.START_GROUP &&
[all …]
Dwriter.js133 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
368 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
381 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
394 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
407 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
420 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
433 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
447 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
460 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
516 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
[all …]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs274 uint tag = WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited); in ReadMaliciouslyLargeBlob()
348 uint tag = WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited); in ReadInvalidUtf8()
399 output.WriteTag(1, WireFormat.WireType.LengthDelimited); in TestSlowPathAvoidance()
401 output.WriteTag(2, WireFormat.WireType.LengthDelimited); in TestSlowPathAvoidance()
438 output.WriteTag(1, WireFormat.WireType.LengthDelimited); in SkipGroup()
442 output.WriteTag(2, WireFormat.WireType.StartGroup); in SkipGroup()
443 output.WriteTag(1, WireFormat.WireType.Fixed32); in SkipGroup()
445 output.WriteTag(2, WireFormat.WireType.LengthDelimited); in SkipGroup()
448 output.WriteTag(3, WireFormat.WireType.StartGroup); in SkipGroup()
449 output.WriteTag(1, WireFormat.WireType.Fixed64); in SkipGroup()
[all …]
DGeneratedMessageTest.cs259 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyValue()
263 output.WriteTag(2, WireFormat.WireType.LengthDelimited); in MapWithOnlyValue()
277 output.WriteTag(TestMap.MapInt32DoubleFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_PrimitiveValue()
280 output.WriteTag(1, WireFormat.WireType.Varint); in MapWithOnlyKey_PrimitiveValue()
294 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_MessageValue()
297 output.WriteTag(1, WireFormat.WireType.Varint); in MapWithOnlyKey_MessageValue()
312 output.WriteTag(TestMap.MapInt32Int32FieldNumber, WireFormat.WireType.LengthDelimited); in MapIgnoresExtraFieldsWithinEntryMessages()
321 output.WriteTag(1, WireFormat.WireType.Varint); in MapIgnoresExtraFieldsWithinEntryMessages()
323 output.WriteTag(2, WireFormat.WireType.Varint); in MapIgnoresExtraFieldsWithinEntryMessages()
325 output.WriteTag(3, WireFormat.WireType.Varint); in MapIgnoresExtraFieldsWithinEntryMessages()
[all …]
DCodedOutputStreamTest.cs298 cout.WriteTag(11, WireFormat.WireType.Varint); in TestCodedInputOutputPosition()
303 cout.WriteTag(12, WireFormat.WireType.LengthDelimited); in TestCodedInputOutputPosition()
308 cout.WriteTag(13, WireFormat.WireType.Fixed32); in TestCodedInputOutputPosition()
319 cout.WriteTag(1, WireFormat.WireType.Varint); in TestCodedInputOutputPosition()
324 cout.WriteTag(2, WireFormat.WireType.LengthDelimited); in TestCodedInputOutputPosition()
329 cout.WriteTag(3, WireFormat.WireType.Fixed32); in TestCodedInputOutputPosition()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs373 uint tag = WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited); in ReadMaliciouslyLargeBlob()
391 uint tag = WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited); in ReadBlobGreaterThanCurrentLimit()
423 uint tag = WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited); in ReadStringGreaterThanCurrentLimit()
512 … output.WriteTag(WireFormat.MakeTag(unknownFieldNumber, WireFormat.WireType.StartGroup)); in MakeMaliciousRecursionUnknownFieldsPayload()
516 … output.WriteTag(WireFormat.MakeTag(unknownFieldNumber, WireFormat.WireType.EndGroup)); in MakeMaliciousRecursionUnknownFieldsPayload()
540 output.WriteTag(WireFormat.MakeTag(groupFieldNumber, WireFormat.WireType.StartGroup)); in ReadGroup_WrongEndGroupTag()
543 output.WriteTag(WireFormat.MakeTag(groupFieldNumber + 1, WireFormat.WireType.EndGroup)); in ReadGroup_WrongEndGroupTag()
555 output.WriteTag(WireFormat.MakeTag(14, WireFormat.WireType.StartGroup)); in ReadGroup_UnknownFields_WrongEndGroupTag()
557 output.WriteTag(WireFormat.MakeTag(15, WireFormat.WireType.EndGroup)); in ReadGroup_UnknownFields_WrongEndGroupTag()
585 uint tag = WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited); in ReadInvalidUtf8()
[all …]
DGeneratedMessageTest.cs269 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyValue()
273 output.WriteTag(2, WireFormat.WireType.LengthDelimited); in MapWithOnlyValue()
292 output.WriteTag(TestMap.MapInt32DoubleFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_PrimitiveValue()
295 output.WriteTag(1, WireFormat.WireType.Varint); in MapWithOnlyKey_PrimitiveValue()
314 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_MessageValue()
317 output.WriteTag(1, WireFormat.WireType.Varint); in MapWithOnlyKey_MessageValue()
337 output.WriteTag(TestMap.MapInt32Int32FieldNumber, WireFormat.WireType.LengthDelimited); in MapIgnoresExtraFieldsWithinEntryMessages()
346 output.WriteTag(1, WireFormat.WireType.Varint); in MapIgnoresExtraFieldsWithinEntryMessages()
348 output.WriteTag(2, WireFormat.WireType.Varint); in MapIgnoresExtraFieldsWithinEntryMessages()
350 output.WriteTag(3, WireFormat.WireType.Varint); in MapIgnoresExtraFieldsWithinEntryMessages()
[all …]
DIssuesTest.cs101 cos.WriteTag(11, WireFormat.WireType.Varint); in CodedInputStream_LimitReachedRightAfterTag()
113 cis.AssertNextTag(WireFormat.MakeTag(11, WireFormat.WireType.Varint)); in CodedInputStream_LimitReachedRightAfterTag()
/third_party/protobuf/csharp/src/Google.Protobuf/
DParsingPrimitivesMessages.cs55 case WireFormat.WireType.StartGroup: in SkipLastField()
58 case WireFormat.WireType.EndGroup: in SkipLastField()
61 case WireFormat.WireType.Fixed32: in SkipLastField()
64 case WireFormat.WireType.Fixed64: in SkipLastField()
67 case WireFormat.WireType.LengthDelimited: in SkipLastField()
71 case WireFormat.WireType.Varint: in SkipLastField()
98 if (WireFormat.GetTagWireType(tag) == WireFormat.WireType.EndGroup) in SkipGroup()
148 … CheckLastTagWas(ref ctx.state, WireFormat.MakeTag(fieldNumber, WireFormat.WireType.EndGroup)); in ReadGroup()
162 … CheckLastTagWas(ref ctx.state, WireFormat.MakeTag(fieldNumber, WireFormat.WireType.EndGroup)); in ReadGroup()
DWireFormat.cs49 public enum WireType : uint enum in Google.Protobuf.WireFormat
83 public static WireType GetTagWireType(uint tag) in GetTagWireType()
85 return (WireType) (tag & TagTypeMask); in GetTagWireType()
99 public static uint MakeTag(int fieldNumber, WireType wireType) in MakeTag()
DUnknownField.cs111 output.WriteTag(fieldNumber, WireFormat.WireType.Varint); in WriteTo()
119 output.WriteTag(fieldNumber, WireFormat.WireType.Fixed32); in WriteTo()
127 output.WriteTag(fieldNumber, WireFormat.WireType.Fixed64); in WriteTo()
135 output.WriteTag(fieldNumber, WireFormat.WireType.LengthDelimited); in WriteTo()
143 output.WriteTag(fieldNumber, WireFormat.WireType.StartGroup); in WriteTo()
145 output.WriteTag(fieldNumber, WireFormat.WireType.EndGroup); in WriteTo()
DUnknownFieldSet.cs210 case WireFormat.WireType.Varint: in MergeFieldFrom()
216 case WireFormat.WireType.Fixed32: in MergeFieldFrom()
222 case WireFormat.WireType.Fixed64: in MergeFieldFrom()
228 case WireFormat.WireType.LengthDelimited: in MergeFieldFrom()
234 case WireFormat.WireType.StartGroup: in MergeFieldFrom()
241 case WireFormat.WireType.EndGroup: in MergeFieldFrom()
DFieldCodec.cs532 …Bool(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
533 …nt32(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
534 …nt64(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
535 …nt32(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
536 …nt64(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
537 …oat(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Fixed32)) },
538 …ble(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Fixed64)) },
539 …reFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.LengthDelimited))…
540 …reFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.LengthDelimited))…
682 … TypeSupportsPacking && WireFormat.GetTagWireType(tag) == WireFormat.WireType.LengthDelimited;
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs165 …output.WriteTag(RepeatedWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in RepeatedWrappersBinaryFormat()
167 output.WriteTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint); in RepeatedWrappersBinaryFormat()
170 …output.WriteTag(RepeatedWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in RepeatedWrappersBinaryFormat()
339 … WireFormat.MakeTag(TestWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in MergingStreamExplicitValue()
340 … var valueTag = WireFormat.MakeTag(Int32Value.ValueFieldNumber, WireFormat.WireType.Varint); in MergingStreamExplicitValue()
400 … WireFormat.MakeTag(TestWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in UnknownFieldInWrapperInt32FastPath()
401 var unknownTag = WireFormat.MakeTag(15, WireFormat.WireType.Varint); in UnknownFieldInWrapperInt32FastPath()
402 … var valueTag = WireFormat.MakeTag(Int32Value.ValueFieldNumber, WireFormat.WireType.Varint); in UnknownFieldInWrapperInt32FastPath()
427 … WireFormat.MakeTag(TestWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in UnknownFieldInWrapperInt32SlowPath()
428 var unknownTag = WireFormat.MakeTag(15, WireFormat.WireType.Varint); in UnknownFieldInWrapperInt32SlowPath()
[all …]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs309 uint packedTag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_PackedInt32()
325 uint nonPackedTag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_PackedInt32()
337 uint nonPackedTag = WireFormat.MakeTag(10, WireFormat.WireType.Varint); in AddEntriesFrom_NonPackedInt32()
351 uint packedTag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_NonPackedInt32()
363 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_String()
389 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_Message()
410 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in WriteTo_PackedInt32()
431 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.Varint); in WriteTo_NonPackedInt32()
452 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in WriteTo_String()
475 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in WriteTo_Message()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs310 uint packedTag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_PackedInt32()
326 uint nonPackedTag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_PackedInt32()
338 uint nonPackedTag = WireFormat.MakeTag(10, WireFormat.WireType.Varint); in AddEntriesFrom_NonPackedInt32()
352 uint packedTag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_NonPackedInt32()
364 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_String()
390 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_Message()
411 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in WriteTo_PackedInt32()
432 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.Varint); in WriteTo_NonPackedInt32()
453 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in WriteTo_String()
476 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in WriteTo_Message()
[all …]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs160 …output.WriteTag(RepeatedWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in RepeatedWrappersBinaryFormat()
162 output.WriteTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint); in RepeatedWrappersBinaryFormat()
165 …output.WriteTag(RepeatedWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in RepeatedWrappersBinaryFormat()
332 … WireFormat.MakeTag(TestWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in MergingStreamExplicitValue()
333 … var valueTag = WireFormat.MakeTag(Int32Value.ValueFieldNumber, WireFormat.WireType.Varint); in MergingStreamExplicitValue()
393 … WireFormat.MakeTag(TestWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in UnknownFieldInWrapper()
394 var unknownTag = WireFormat.MakeTag(15, WireFormat.WireType.Varint); in UnknownFieldInWrapper()
395 … var valueTag = WireFormat.MakeTag(Int32Value.ValueFieldNumber, WireFormat.WireType.Varint); in UnknownFieldInWrapper()
/third_party/protobuf/src/google/protobuf/
Dwire_format.h82 static inline WireFormatLite::WireType WireTypeForField(
86 static inline WireFormatLite::WireType WireTypeForFieldType(
325 inline WireFormatLite::WireType WireFormat::WireTypeForField( in WireTypeForField()
334 inline WireFormatLite::WireType WireFormat::WireTypeForFieldType( in WireTypeForFieldType()

123