Home
last modified time | relevance | path

Searched refs:WireType (Results 1 - 25 of 52) sorted by relevance

123

/third_party/protobuf/js/experimental/runtime/kernel/
H A Dtag_test.js7 const WireType = goog.require('protobuf.binary.WireType');
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
[all...]
H A Dindexer_test.js15 const WireType = goog.require('protobuf.binary.WireType');
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
[all...]
H A Dtag.js4 const WireType = goog.require('protobuf.binary.WireType');
11 * @return {!WireType}
14 return /** @type {!WireType} */ (tag & 0x07);
29 * @param {!WireType} wireType
43 * @param {!WireType} wireType
75 * @param {!WireType} wireType
80 case WireType.VARINT:
85 case WireType.FIXED64:
88 case WireType
[all...]
H A Dwriter.js10 const WireType = goog.require('protobuf.binary.WireType');
91 * @param {!WireType} wireType
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
[all...]
H A Dkernel.js23 const WireType = goog.require('protobuf.binary.WireType');
35 * @param {!WireType} expected
74 * @param {!WireType} wireType
96 * @param {!WireType} expectedWireType
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
[all...]
H A Dwriter_test.js14 const WireType = goog.require('protobuf.binary.WireType');
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
[all...]
H A Dwire_type.js1 goog.module('protobuf.binary.WireType');
7 const WireType = {
17 exports = WireType;
/third_party/protobuf/js/binary/
H A Dreader.js89 * @private {jspb.BinaryConstants.WireType}
91 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
154 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
201 * @return {jspb.BinaryConstants.WireType} The wire type of the next field
202 * in the stream, or WireType.INVALID if there is no next field.
214 return this.nextWireType_ == jspb.BinaryConstants.WireType.END_GROUP;
236 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
247 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
284 var nextWireType = /** @type {jspb.BinaryConstants.WireType} */
288 if (nextWireType != jspb.BinaryConstants.WireType
[all...]
H A 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
[all...]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
H A 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 in SkipGroup()
[all...]
H A 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 in MapIgnoresExtraFieldsWithinEntryMessages()
[all...]
H A 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/
H A 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 in MapIgnoresExtraFieldsWithinEntryMessages()
[all...]
H A 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 in ReadInvalidUtf8()
[all...]
H A 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/
H A 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()
H A 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()
H A 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()
H A 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()
H A DFieldCodec.cs532 { typeof(bool), ForBool(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
533 { typeof(int), ForInt32(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
534 { typeof(long), ForInt64(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
535 { typeof(uint), ForUInt32(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
536 { typeof(ulong), ForUInt64(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
537 { typeof(float), ForFloat(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Fixed32)) },
538 { typeof(double), ForDouble(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Fixed64)) },
539 { typeof(string), ForString(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.LengthDelimited)) },
540 { typeof(ByteString), ForBytes(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.LengthDelimited)) }
682 TypeSupportsPacking && WireFormat.GetTagWireType(tag) == WireFormat.WireType
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
H A 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 var wrapperTag = WireFormat.MakeTag(TestWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in MergingStreamExplicitValue()
340 var valueTag = WireFormat.MakeTag(Int32Value.ValueFieldNumber, WireFormat.WireType.Varint); in MergingStreamExplicitValue()
400 var wrapperTag = 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 var wrapperTag = WireFormat.MakeTag(TestWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in UnknownFieldInWrapperInt32SlowPath()
428 var unknownTag = WireFormat.MakeTag(15, WireFormat.WireType in UnknownFieldInWrapperInt32SlowPath()
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
H A 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 in WriteTo_Message()
[all...]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
H A 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 in WriteTo_Message()
[all...]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
H A 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 var wrapperTag = WireFormat.MakeTag(TestWellKnownTypes.Int32FieldFieldNumber, WireFormat.WireType.LengthDelimited); in MergingStreamExplicitValue()
333 var valueTag = WireFormat.MakeTag(Int32Value.ValueFieldNumber, WireFormat.WireType.Varint); in MergingStreamExplicitValue()
393 var wrapperTag = 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/
H A Dwire_format.h81 // Given a field return its WireType
82 static inline WireFormatLite::WireType WireTypeForField(
85 // Given a FieldDescriptor::Type return its WireType
86 static inline WireFormatLite::WireType WireTypeForFieldType(
147 // Skips a field value of the given WireType. The input should start
325 inline WireFormatLite::WireType WireFormat::WireTypeForField( in WireTypeForField()
334 inline WireFormatLite::WireType WireFormat::WireTypeForFieldType( in WireTypeForFieldType()

Completed in 15 milliseconds

123