Home
last modified time | relevance | path

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

12

/external/protobuf/js/binary/
Dreader.js90 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
153 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
213 return this.nextWireType_ == jspb.BinaryConstants.WireType.END_GROUP;
235 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
246 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
287 if (nextWireType != jspb.BinaryConstants.WireType.VARINT &&
288 nextWireType != jspb.BinaryConstants.WireType.FIXED32 &&
289 nextWireType != jspb.BinaryConstants.WireType.FIXED64 &&
290 nextWireType != jspb.BinaryConstants.WireType.DELIMITED &&
291 nextWireType != jspb.BinaryConstants.WireType.START_GROUP &&
[all …]
Dwriter.js133 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
367 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
380 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
393 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
406 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
419 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
432 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
488 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
544 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
587 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED32);
[all …]
Dconstants.js203 jspb.BinaryConstants.WireType = {
221 var wireTypes = jspb.BinaryConstants.WireType;
Dutils.js727 var tag = field * 8 + jspb.BinaryConstants.WireType.VARINT;
828 var tag = field * 8 + jspb.BinaryConstants.WireType.FIXED32;
843 var tag = field * 8 + jspb.BinaryConstants.WireType.FIXED64;
860 var tag = field * 8 + jspb.BinaryConstants.WireType.DELIMITED;
/external/protobuf/csharp/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()
/external/protobuf/csharp/src/Google.Protobuf/
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()
DFieldCodec.cs268 …Bool(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
269 …nt32(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
270 …nt64(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
271 …nt32(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
272 …nt64(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Varint)) },
273 …oat(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Fixed32)) },
274 …ble(WireFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.Fixed64)) },
275 …reFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.LengthDelimited))…
276 …reFormat.MakeTag(WrappersReflection.WrapperValueFieldNumber, WireFormat.WireType.LengthDelimited))…
366 … TypeSupportsPacking && WireFormat.GetTagWireType(tag) == WireFormat.WireType.LengthDelimited; in IsPackedRepeatedField()
DCodedInputStream.cs404 case WireFormat.WireType.StartGroup: in SkipLastField()
407 case WireFormat.WireType.EndGroup: in SkipLastField()
410 case WireFormat.WireType.Fixed32: in SkipLastField()
413 case WireFormat.WireType.Fixed64: in SkipLastField()
416 case WireFormat.WireType.LengthDelimited: in SkipLastField()
420 case WireFormat.WireType.Varint: in SkipLastField()
444 if (WireFormat.GetTagWireType(tag) == WireFormat.WireType.EndGroup) in SkipGroup()
DCodedOutputStream.cs391 public void WriteTag(int fieldNumber, WireFormat.WireType type) in WriteTag()
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs223 uint packedTag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_PackedInt32()
239 uint nonPackedTag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_PackedInt32()
251 uint nonPackedTag = WireFormat.MakeTag(10, WireFormat.WireType.Varint); in AddEntriesFrom_NonPackedInt32()
265 uint packedTag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_NonPackedInt32()
277 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_String()
303 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in AddEntriesFrom_Message()
324 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in WriteTo_PackedInt32()
345 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.Varint); in WriteTo_NonPackedInt32()
366 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in WriteTo_String()
389 uint tag = WireFormat.MakeTag(10, WireFormat.WireType.LengthDelimited); in WriteTo_Message()
[all …]
/external/protobuf/src/google/protobuf/
Dwire_format_lite.h86 enum WireType { enum
137 static inline WireFormatLite::WireType WireTypeForFieldType( in WireTypeForFieldType()
152 static uint32 MakeTag(int field_number, WireType type);
153 static WireType GetTagWireType(uint32 tag);
355 INL static void WriteTag(field_number, WireType type, output);
421 INL static uint8* WriteTagToArray(field_number, WireType type, output);
537 static const WireFormatLite::WireType kWireTypeForFieldType[];
589 inline uint32 WireFormatLite::MakeTag(int field_number, WireType type) { in MakeTag()
593 inline WireFormatLite::WireType WireFormatLite::GetTagWireType(uint32 tag) { in GetTagWireType()
594 return static_cast<WireType>(tag & kTagTypeMask); in GetTagWireType()
Dwire_format.h79 static inline WireFormatLite::WireType WireTypeForField(
83 static inline WireFormatLite::WireType WireTypeForFieldType(
282 inline WireFormatLite::WireType WireFormat::WireTypeForField( in WireTypeForField()
291 inline WireFormatLite::WireType WireFormat::WireTypeForFieldType( in WireTypeForFieldType()
Dwire_format_lite.cc98 const WireFormatLite::WireType
100 static_cast<WireFormatLite::WireType>(-1), // invalid
231 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in SkipMessage()
251 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in SkipMessage()
Dmap_type_handler.h113 static const WireFormatLite::WireType kWireType = \
151 static const WireFormatLite::WireType kWireType =
208 static const WireFormatLite::WireType kWireType = \
Dwire_format_lite_inl.h517 inline void WireFormatLite::WriteTag(int field_number, WireType type, in WriteTag()
602 WireType type, in WriteTagToArray()
Dextension_set.cc60 inline bool is_packable(WireFormatLite::WireType type) { in is_packable()
1117 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in FindExtensionInfoFromTag()
1130 WireFormatLite::WireType expected_wire_type = in FindExtensionInfoFromFieldNumber()
/external/protobuf/csharp/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()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_map_field.cc73 string WireType(const FieldDescriptor* field) { in WireType() function
93 (*variables)["key_wire_type"] = WireType(key); in SetMessageVariables()
99 (*variables)["value_wire_type"] = WireType(value); in SetMessageVariables()
117 (*variables)["value_wire_type"] = WireType(value); in SetMessageVariables()
Djava_map_field_lite.cc73 string WireType(const FieldDescriptor* field) { in WireType() function
93 (*variables)["key_wire_type"] = WireType(key); in SetMessageVariables()
99 (*variables)["value_wire_type"] = WireType(value); in SetMessageVariables()
117 (*variables)["value_wire_type"] = WireType(value); in SetMessageVariables()
/external/protobuf/csharp/src/Google.Protobuf.Test/Compatibility/
DTypeExtensionsTest.cs57 [TestCase(typeof(WireFormat.WireType), true)]
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_message.cc451 internal::WireFormatLite::WireType wt = in GenerateMergingMethods()
/external/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource.cc159 WireFormatLite::WireType expected_type = in FindAndVerifyField()
162 WireFormatLite::WireType actual_type = WireFormatLite::GetTagWireType(tag); in FindAndVerifyField()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc3035 internal::WireFormatLite::WireType wiretype = in GenerateMergeFromCodedStream()
3045 internal::WireFormatLite::WireType wiretype = in GenerateMergeFromCodedStream()
3144 range->start, static_cast<WireFormatLite::WireType>(0)); in GenerateMergeFromCodedStream()
3146 range->end, static_cast<WireFormatLite::WireType>(0)); in GenerateMergeFromCodedStream()

12