/third_party/protobuf/conformance/ |
D | binary_json_conformance_suite.cc | 122 string varint(uint64_t x) { in varint() function 140 string delim(const string& buf) { return cat(varint(buf.size()), buf); } in delim() 145 string zz32(int32_t x) { return varint(WireFormatLite::ZigZagEncode32(x)); } in zz32() 146 string zz64(int64_t x) { return varint(WireFormatLite::ZigZagEncode64(x)); } in zz64() 149 return varint((fieldnum << 3) | wire_type); in tag() 160 return varint(0); in GetDefaultValue() 193 return varint(1); in GetNonDefaultValue() 212 return delim(cat(tag(1, WireFormatLite::WIRETYPE_VARINT), varint(1234))); in GetNonDefaultValue() 333 return binary_data == varint(0); in IsProto3Default() 705 cat( tag(field->number(), wire_type), varint(1) ), in TestPrematureEOFForType() [all …]
|
/third_party/grpc/third_party/upb/tests/pb/ |
D | test_decoder.cc | 201 string varint(uint64_t x) { in varint() function 211 string delim(const string& buf) { return cat(varint(buf.size()), buf); } in delim() 216 string zz32(int32_t x) { return varint(upb_zzenc_32(x)); } in zz32() 217 string zz64(int64_t x) { return varint(upb_zzenc_64(x)); } in zz64() 220 return varint((fieldnum << 3) | wire_type); in tag() 235 return cat(varint(buf.size() + err), buf); in badlen_delim() 657 cat( tag(fieldnum, wire_type), varint(1) )); in test_premature_eof_for_type() 661 cat( tag(rep_fieldnum, wire_type), varint(1) )); in test_premature_eof_for_type() 665 cat( tag(UNKNOWN_FIELD, wire_type), varint(1) )); in test_premature_eof_for_type() 674 varint(incomplete_submsg.size()), in test_premature_eof_for_type() [all …]
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | UnknownFieldSet.java | 704 return varint; in getVarintList() 748 return new Object[] {varint, fixed32, fixed64, lengthDelimited, group}; in getIdentityArray() 770 for (long value : varint) { in writeTo() 790 for (long value : varint) { in getSerializedSize() 821 writer.writeInt64List(fieldNumber, varint, false); in writeTo() 873 private List<Long> varint; field in UnknownFieldSet.Field 900 if (result.varint == null) { in clone() 901 copy.varint = null; in clone() 903 copy.varint = new ArrayList<>(result.varint); in clone() 936 if (result.varint == null) { in build() [all …]
|
/third_party/protobuf/src/google/protobuf/ |
D | unknown_field_set_unittest.cc | 151 EXPECT_EQ(all_fields_.optional_int32(), field->varint()); in TEST_F() 192 EXPECT_EQ(all_fields_.optionalgroup().a(), nested_field.varint()); in TEST_F() 381 EXPECT_EQ(654321, destination.unknown_fields().field(0).varint()); in TEST_F() 489 EXPECT_EQ(5, unknown_fields.field(0).varint()); in TEST_F() 493 EXPECT_EQ(4, unknown_fields.field(1).varint()); in TEST_F() 497 EXPECT_EQ(6, unknown_fields.field(2).varint()); in TEST_F() 519 EXPECT_EQ(5, unknown_fields.field(0).varint()); in TEST_F() 523 EXPECT_EQ(4, unknown_fields.field(1).varint()); in TEST_F() 527 EXPECT_EQ(6, unknown_fields.field(2).varint()); in TEST_F()
|
D | preserve_unknown_enum_test.cc | 270 EXPECT_EQ(message.unknown_fields().field(0).varint(), 4242); in TEST() 273 EXPECT_EQ(message.unknown_fields().field(1).varint(), 4242); in TEST() 276 EXPECT_EQ(message.unknown_fields().field(2).varint(), 4242); in TEST()
|
D | parse_context.cc | 433 return ctx->ReadPackedVarint(ptr, [object](uint64 varint) { in VarintParser() argument 437 val = WireFormatLite::ZigZagDecode64(varint); in VarintParser() 439 val = WireFormatLite::ZigZagDecode32(varint); in VarintParser() 442 val = varint; in VarintParser()
|
D | unknown_field_set.h | 249 inline uint64 varint() const; 345 inline uint64 UnknownField::varint() const { in varint() function
|
D | parse_context.h | 628 uint64 varint; 629 ptr = VarintParse(ptr, &varint); 631 add(varint);
|
D | reflection_ops_unittest.cc | 166 EXPECT_EQ(1, message1.unknown_fields().field(0).varint()); in TEST() 169 EXPECT_EQ(2, message1.unknown_fields().field(1).varint()); in TEST()
|
D | arena_unittest.cc | 383 EXPECT_EQ(42, arena2_message->unknown_fields().field(0).varint()); in TEST() 395 EXPECT_EQ(84, arena1_message->unknown_fields().field(0).varint()); in TEST() 396 EXPECT_EQ(42, arena2_message->unknown_fields().field(0).varint()); in TEST()
|
D | message_unittest.inc | 379 // The byte is a valid varint, but not a valid tag (zero). 382 // The byte is a malformed varint.
|
/third_party/grpc/third_party/upb/upb/ |
D | encode.c | 186 CASE(uint64_t, varint, UPB_WIRE_TYPE_VARINT, val); in encode_scalar() 188 CASE(uint32_t, varint, UPB_WIRE_TYPE_VARINT, val); in encode_scalar() 191 CASE(int32_t, varint, UPB_WIRE_TYPE_VARINT, (int64_t)val); in encode_scalar() 199 CASE(bool, varint, UPB_WIRE_TYPE_VARINT, val); in encode_scalar() 201 CASE(int32_t, varint, UPB_WIRE_TYPE_VARINT, encode_zz32(val)); in encode_scalar() 203 CASE(int64_t, varint, UPB_WIRE_TYPE_VARINT, encode_zz64(val)); in encode_scalar()
|
/third_party/grpc/third_party/upb/ |
D | BUILD.gn | 147 "upb/pb/varint.c", 148 "upb/pb/varint.int.h",
|
D | CMakeLists.txt | 131 upb/pb/varint.c 132 upb/pb/varint.int.h
|
D | BUILD | 243 "upb/pb/varint.c", 244 "upb/pb/varint.int.h",
|
/third_party/boost/libs/beast/test/beast/core/ |
D | _detail_varint.cpp | 49 BEAST_DEFINE_TESTSUITE(beast,core,varint);
|
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/ |
D | stream.py | 15 from . import streamname, varint 227 varint.write_uvarint(self._fd, len(data)) 375 varint.write_uvarint(fobj, len(params_bytes))
|
/third_party/grpc/third_party/upb/upb/pb/ |
D | decoder.c | 717 PRIMITIVE_OP(INT32, varint, int32, int32_t, uint64_t) in run_decoder_vm() 718 PRIMITIVE_OP(INT64, varint, int64, int64_t, uint64_t) in run_decoder_vm() 719 PRIMITIVE_OP(UINT32, varint, uint32, uint32_t, uint64_t) in run_decoder_vm() 720 PRIMITIVE_OP(UINT64, varint, uint64, uint64_t, uint64_t) in run_decoder_vm() 725 PRIMITIVE_OP(BOOL, varint, bool, bool, uint64_t) in run_decoder_vm() 728 PRIMITIVE_OP(SINT32, varint, int32, upb_zzdec_32, uint64_t) in run_decoder_vm() 729 PRIMITIVE_OP(SINT64, varint, int64, upb_zzdec_64, uint64_t) in run_decoder_vm()
|
/third_party/grpc/third_party/upb/cmake/ |
D | CMakeLists.txt | 143 ../upb/pb/varint.c 144 ../upb/pb/varint.int.h
|
/third_party/protobuf/java/core/src/test/proto/com/google/protobuf/ |
D | lite_equals_and_hash.proto | 75 optional int32 varint = 101; field
|
/third_party/protobuf/objectivec/Tests/ |
D | GPBCodedInputStreamTests.m | 233 // Turn on lower 31 bits of the upper half on a 64 bit varint. 245 // Turn on lower 31 bits and lower 31 bits on upper half on a 64 bit varint. 257 // Turn on bits 32 and 64 bit on a 64 bit varint.
|
D | GPBUnknownFieldSetTest.m | 170 // Original field is not a varint, so use a varint. 176 // Original field *is* a varint, so use something else.
|
/third_party/protobuf/python/google/protobuf/pyext/ |
D | unknown_fields.cc | 280 data = PyInt_FromLong(field->varint()); in GetData()
|
/third_party/protobuf/src/google/protobuf/util/ |
D | message_differencer.cc | 1339 match = fields1[index1].second->varint() == in CompareUnknownFields() 1340 fields2[index2].second->varint(); in CompareUnknownFields() 1842 output = StrCat(unknown_field->varint()); in PrintUnknownFieldValue()
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/protos/src/google/protobuf/ |
D | unittest_proto3.proto | 355 // Check for a varint type, just for good measure.
|