/external/protobuf/python/google/protobuf/internal/ |
D | wire_format.py | 80 def PackTag(field_number, wire_type): argument 90 return (field_number << TAG_TYPE_BITS) | wire_type 122 def Int32ByteSize(field_number, int32): argument 123 return Int64ByteSize(field_number, int32) 130 def Int64ByteSize(field_number, int64): argument 132 return UInt64ByteSize(field_number, 0xffffffffffffffff & int64) 135 def UInt32ByteSize(field_number, uint32): argument 136 return UInt64ByteSize(field_number, uint32) 139 def UInt64ByteSize(field_number, uint64): argument 140 return TagByteSize(field_number) + _VarUInt64ByteSizeNoTag(uint64) [all …]
|
D | encoder.py | 111 def _TagSize(field_number): argument 115 return _VarintSize(wire_format.PackTag(field_number, 0)) 130 def SpecificSizer(field_number, is_repeated, is_packed): argument 131 tag_size = _TagSize(field_number) 159 def SpecificSizer(field_number, is_repeated, is_packed): argument 160 tag_size = _TagSize(field_number) 188 def SpecificSizer(field_number, is_repeated, is_packed): argument 189 tag_size = _TagSize(field_number) 230 def StringSizer(field_number, is_repeated, is_packed): argument 233 tag_size = _TagSize(field_number) [all …]
|
D | wire_format_test.py | 49 field_number = 0xabc 51 self.assertEqual((field_number << 3) | tag_type, 52 wire_format.PackTag(field_number, tag_type)) 55 self.assertRaises(message.EncodeError, PackTag, field_number, 6) 57 self.assertRaises(message.EncodeError, PackTag, field_number, -1) 63 field_number, wire_type = wire_format.UnpackTag( 65 self.assertEqual(expected_field_number, field_number) 109 for field_number, tag_bytes in ((15, 1), (16, 2), (2047, 2), (2048, 3)): 111 actual_size = byte_size_fn(field_number, value) 115 byte_size_fn, field_number, value, expected_size, actual_size))
|
D | decoder.py | 199 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default): argument 219 tag_bytes = encoder.TagBytes(field_number, wire_type) 353 def EnumDecoder(field_number, is_repeated, is_packed, key, new_default): argument 373 tag_bytes = encoder.TagBytes(field_number, 386 tag_bytes = encoder.TagBytes(field_number, wire_format.WIRETYPE_VARINT) 421 tag_bytes = encoder.TagBytes(field_number, 461 def StringDecoder(field_number, is_repeated, is_packed, key, new_default): argument 477 tag_bytes = encoder.TagBytes(field_number, 507 def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): argument 514 tag_bytes = encoder.TagBytes(field_number, [all …]
|
/external/protobuf/src/google/protobuf/ |
D | wire_format_lite.h | 152 static uint32 MakeTag(int field_number, WireType type); 158 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 244 #define field_number int field_number_arg macro 302 field_number, 329 static inline bool ReadGroup (field_number, input, MessageLite* value); 336 static inline bool ReadGroupNoVirtual(field_number, input, 345 static inline bool ReadGroupNoVirtualNoRecursionDepth(field_number, input, 355 INL static void WriteTag(field_number, WireType type, output); 374 static void WriteInt32 (field_number, int32 value, output); 375 static void WriteInt64 (field_number, int64 value, output); [all …]
|
D | wire_format_lite.cc | 287 int field_number, int value) { in SkipUnknownEnum() argument 288 unknown_fields_->WriteVarint32(field_number); in SkipUnknownEnum() 314 int field_number, in ReadPackedEnumPreserveUnknowns() argument 330 uint32 tag = WireFormatLite::MakeTag(field_number, in ReadPackedEnumPreserveUnknowns() 340 void WireFormatLite::WriteInt32(int field_number, int32 value, in WriteInt32() argument 342 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt32() 345 void WireFormatLite::WriteInt64(int field_number, int64 value, in WriteInt64() argument 347 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt64() 350 void WireFormatLite::WriteUInt32(int field_number, uint32 value, in WriteUInt32() argument 352 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteUInt32() [all …]
|
D | wire_format_lite_inl.h | 432 inline bool WireFormatLite::ReadGroup(int field_number, in ReadGroup() argument 439 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { in ReadGroup() 468 int field_number, io::CodedInputStream* input, in ReadGroupNoVirtual() argument 476 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { in ReadGroupNoVirtual() 483 int field_number, io::CodedInputStream* input, in ReadGroupNoVirtualNoRecursionDepth() argument 487 input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP)); in ReadGroupNoVirtualNoRecursionDepth() 517 inline void WireFormatLite::WriteTag(int field_number, WireType type, in WriteTag() argument 519 output->WriteTag(MakeTag(field_number, type)); in WriteTag() 583 int field_number, const MessageType_WorkAroundCppLookupDefect& value, in WriteGroupNoVirtual() argument 585 WriteTag(field_number, WIRETYPE_START_GROUP, output); in WriteGroupNoVirtual() [all …]
|
D | wire_format.h | 88 static inline int TagSize(int field_number, FieldDescriptor::Type type); 144 uint32 field_number, 252 uint32 field_number, 256 static bool ParseAndMergeMessageSetField(uint32 field_number, 274 virtual void SkipUnknownEnum(int field_number, int value); 304 inline int WireFormat::TagSize(int field_number, FieldDescriptor::Type type) { in TagSize() argument 307 return WireFormatLite::TagSize(field_number, in TagSize()
|
D | descriptor_database.h | 86 int field_number, 150 int field_number, 176 Value FindExtension(const string& containing_type, int field_number); 295 int field_number, 324 int field_number, 353 int field_number,
|
D | descriptor_database.cc | 191 int field_number) { in FindExtension() argument 193 by_extension_, std::make_pair(containing_type, field_number), Value()); in FindExtension() 280 int field_number, in FindFileContainingExtension() argument 282 return MaybeCopy(index_.FindExtension(containing_type, field_number), output); in FindFileContainingExtension() 371 int field_number, in FindFileContainingExtension() argument 373 return MaybeParse(index_.FindExtension(containing_type, field_number), in FindFileContainingExtension() 418 int field_number, in FindFileContainingExtension() argument 424 pool_.FindExtensionByNumber(extendee, field_number); in FindFileContainingExtension() 496 int field_number, in FindFileContainingExtension() argument 500 containing_type, field_number, output)) { in FindFileContainingExtension()
|
D | wire_format.cc | 70 int field_number, int value) { in SkipUnknownEnum() argument 71 unknown_fields_->AddVarint(field_number, value); in SkipUnknownEnum() 155 uint32 field_number, in ReadPackedEnumPreserveUnknowns() argument 171 unknown_fields->AddVarint(field_number, value); in ReadPackedEnumPreserveUnknowns() 402 int field_number = WireFormatLite::GetTagFieldNumber(tag); in ParseAndMergePartial() local 403 field = descriptor->FindFieldByNumber(field_number); in ParseAndMergePartial() 406 if (field == NULL && descriptor->IsExtensionNumber(field_number)) { in ParseAndMergePartial() 408 field = message_reflection->FindKnownExtensionByNumber(field_number); in ParseAndMergePartial() 411 ->FindExtensionByNumber(descriptor, field_number); in ParseAndMergePartial() 434 uint32 field_number, in SkipMessageSetField() argument [all …]
|
D | text_format.cc | 424 int32 field_number; in ConsumeField() local 425 if (allow_field_number_ && safe_strto32(field_name, &field_number)) { in ConsumeField() 426 if (descriptor->IsExtensionNumber(field_number)) { in ConsumeField() 427 field = reflection->FindKnownExtensionByNumber(field_number); in ConsumeField() 429 field = descriptor->FindFieldByNumber(field_number); in ConsumeField() 1887 string field_number = SimpleItoa(field.number()); in PrintUnknownFields() local 1891 generator.Print(field_number); in PrintUnknownFields() 1901 generator.Print(field_number); in PrintUnknownFields() 1913 generator.Print(field_number); in PrintUnknownFields() 1925 generator.Print(field_number); in PrintUnknownFields() [all …]
|
D | extension_set_heavy.cc | 60 int field_number); 63 io::CodedInputStream* input, int field_number) { in SkipMessageSetField() argument 70 unknown_fields_->AddLengthDelimited(field_number), length); in SkipMessageSetField() 557 int wire_type, int field_number, io::CodedInputStream* input, in ParseFieldMaybeLazily() argument 561 field_number, static_cast<WireFormatLite::WireType>(wire_type)), in ParseFieldMaybeLazily()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | proto_writer.cc | 113 inline Status WriteInt32(int field_number, const DataPiece& data, in WriteInt32() argument 117 WireFormatLite::WriteInt32(field_number, i32.ValueOrDie(), stream); in WriteInt32() 123 inline Status WriteSFixed32(int field_number, const DataPiece& data, in WriteSFixed32() argument 127 WireFormatLite::WriteSFixed32(field_number, i32.ValueOrDie(), stream); in WriteSFixed32() 133 inline Status WriteSInt32(int field_number, const DataPiece& data, in WriteSInt32() argument 137 WireFormatLite::WriteSInt32(field_number, i32.ValueOrDie(), stream); in WriteSInt32() 143 inline Status WriteFixed32(int field_number, const DataPiece& data, in WriteFixed32() argument 147 WireFormatLite::WriteFixed32(field_number, u32.ValueOrDie(), stream); in WriteFixed32() 153 inline Status WriteUInt32(int field_number, const DataPiece& data, in WriteUInt32() argument 157 WireFormatLite::WriteUInt32(field_number, u32.ValueOrDie(), stream); in WriteUInt32() [all …]
|
/external/grpc-grpc/test/cpp/util/ |
D | proto_reflection_descriptor_database.cc | 155 const string& containing_type, int field_number, in FindFileContainingExtension() argument 157 if (cached_db_.FindFileContainingExtension(containing_type, field_number, in FindFileContainingExtension() 163 missing_extensions_[containing_type].find(field_number) != in FindFileContainingExtension() 173 field_number); in FindFileContainingExtension() 191 missing_extensions_[containing_type].insert(field_number); in FindFileContainingExtension() 194 containing_type.c_str(), field_number); in FindFileContainingExtension() 199 containing_type.c_str(), field_number, error.error_code(), in FindFileContainingExtension() 207 containing_type.c_str(), field_number, in FindFileContainingExtension() 212 return cached_db_.FindFileContainingExtension(containing_type, field_number, in FindFileContainingExtension()
|
D | proto_reflection_descriptor_database.h | 63 const string& containing_type, int field_number,
|
/external/tensorflow/tensorflow/core/kernels/ |
D | decode_proto_op.cc | 957 bool LookupField(int field_number, int* field_index) { in LookupField() argument 964 if (field_number == fields_[fi]->number) { in LookupField() 979 int field_number = -1; in Collect() local 987 tag = input->ReadTag(), prev_field_number = field_number) { in Collect() 988 field_number = WireFormatLite::GetTagFieldNumber(tag); in Collect() 999 if (field_number == last_good_field_number) { in Collect() 1002 if (field_number < prev_field_number) { in Collect() 1009 if (LookupField(field_number, &field_index)) { in Collect() 1017 while (field_number >= next_good_field_number) { in Collect() 1018 if (field_number == next_good_field_number) { in Collect() [all …]
|
/external/protobuf/python/google/protobuf/pyext/ |
D | descriptor_database.cc | 131 const string& containing_type, int field_number, in FindFileContainingExtension() argument 142 containing_type.size(), field_number)); in FindFileContainingExtension()
|
D | descriptor_database.h | 63 int field_number,
|
/external/perfetto/tools/ |
D | gen_merged_protos | 138 field_number = use.group(3) 141 indentation, field_number)
|
/external/tensorflow/tensorflow/core/util/proto/ |
D | decode.h | 349 inline Status ReadGroupBytes(CodedInputStream* input, int field_number, in ReadGroupBytes() argument 362 WireFormatLite::MakeTag(field_number, in ReadGroupBytes() 372 WireFormatLite::FieldType field_type, int field_number, in ReadValue() argument 430 return ReadGroupBytes(input, field_number, index, datap); in ReadValue() 489 const int field_number, const DataType dtype, in ReadPackedFromArray() argument
|
/external/grpc-grpc/third_party/nanopb/ |
D | pb_encode.h | 122 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number);
|
/external/nanopb-c/ |
D | pb_encode.h | 128 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number);
|
/external/protobuf/src/google/protobuf/compiler/ |
D | importer.h | 103 int field_number,
|
/external/protobuf/objectivec/ |
D | GPBCodedOutputStream_PackagePrivate.h | 75 size_t GPBComputeWireFormatTagSize(int field_number, GPBDataType dataType)
|