Home
last modified time | relevance | path

Searched refs:varint (Results 1 – 25 of 49) sorted by relevance

12

/third_party/protobuf/conformance/
Dbinary_json_conformance_suite.cc122 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/
Dtest_decoder.cc201 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/
DUnknownFieldSet.java704 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/
Dunknown_field_set_unittest.cc151 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()
Dpreserve_unknown_enum_test.cc270 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()
Dparse_context.cc433 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()
Dunknown_field_set.h249 inline uint64 varint() const;
345 inline uint64 UnknownField::varint() const { in varint() function
Dparse_context.h628 uint64 varint;
629 ptr = VarintParse(ptr, &varint);
631 add(varint);
Dreflection_ops_unittest.cc166 EXPECT_EQ(1, message1.unknown_fields().field(0).varint()); in TEST()
169 EXPECT_EQ(2, message1.unknown_fields().field(1).varint()); in TEST()
Darena_unittest.cc383 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()
Dmessage_unittest.inc379 // 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/
Dencode.c186 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/
DBUILD.gn147 "upb/pb/varint.c",
148 "upb/pb/varint.int.h",
DCMakeLists.txt131 upb/pb/varint.c
132 upb/pb/varint.int.h
DBUILD243 "upb/pb/varint.c",
244 "upb/pb/varint.int.h",
/third_party/boost/libs/beast/test/beast/core/
D_detail_varint.cpp49 BEAST_DEFINE_TESTSUITE(beast,core,varint);
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/
Dstream.py15 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/
Ddecoder.c717 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/
DCMakeLists.txt143 ../upb/pb/varint.c
144 ../upb/pb/varint.int.h
/third_party/protobuf/java/core/src/test/proto/com/google/protobuf/
Dlite_equals_and_hash.proto75 optional int32 varint = 101; field
/third_party/protobuf/objectivec/Tests/
DGPBCodedInputStreamTests.m233 // 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.
DGPBUnknownFieldSetTest.m170 // 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/
Dunknown_fields.cc280 data = PyInt_FromLong(field->varint()); in GetData()
/third_party/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc1339 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/
Dunittest_proto3.proto355 // Check for a varint type, just for good measure.

12