Home
last modified time | relevance | path

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

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DUnknownFieldSet.java734 public List<Long> getVarintList() { return varint; } in getVarintList()
775 varint, in getIdentityArray()
788 for (final long value : varint) { in writeTo()
811 for (final long value : varint) { in getSerializedSize()
855 private List<Long> varint; field in UnknownFieldSet.Field
885 if (result.varint == null) { in build()
886 result.varint = Collections.emptyList(); in build()
888 result.varint = Collections.unmodifiableList(result.varint); in build()
929 if (!other.varint.isEmpty()) { in mergeFrom()
930 if (result.varint == null) { in mergeFrom()
[all …]
/external/protobuf/src/google/protobuf/
Dunknown_field_set_unittest.cc145 EXPECT_EQ(all_fields_.optional_int32(), field->varint()); in TEST_F()
186 EXPECT_EQ(all_fields_.optionalgroup().a(), nested_field.varint()); in TEST_F()
338 EXPECT_EQ(654321, destination.unknown_fields().field(0).varint()); in TEST_F()
446 EXPECT_EQ(5, unknown_fields.field(0).varint()); in TEST_F()
450 EXPECT_EQ(4, unknown_fields.field(1).varint()); in TEST_F()
454 EXPECT_EQ(6, unknown_fields.field(2).varint()); in TEST_F()
476 EXPECT_EQ(5, unknown_fields.field(0).varint()); in TEST_F()
480 EXPECT_EQ(4, unknown_fields.field(1).varint()); in TEST_F()
484 EXPECT_EQ(6, unknown_fields.field(2).varint()); in TEST_F()
Dunknown_field_set.h187 inline uint64 varint() const;
281 inline uint64 UnknownField::varint() const { in varint() function
Dreflection_ops_unittest.cc162 EXPECT_EQ(1, message1.unknown_fields().field(0).varint()); in TEST()
165 EXPECT_EQ(2, message1.unknown_fields().field(1).varint()); in TEST()
Dwire_format.cc187 output->WriteVarint64(field.varint()); in SerializeUnknownFields()
226 field.number(), field.varint(), target); in SerializeUnknownFieldsToArray()
321 size += io::CodedOutputStream::VarintSize64(field.varint()); in ComputeUnknownFieldsSize()
Darena_unittest.cc329 EXPECT_EQ(42, arena2_message->unknown_fields().field(0).varint()); in TEST()
341 EXPECT_EQ(84, arena1_message->unknown_fields().field(0).varint()); in TEST()
342 EXPECT_EQ(42, arena2_message->unknown_fields().field(0).varint()); in TEST()
Dunittest_proto3.proto355 // Check for a varint type, just for good measure.
Dunittest.proto809 // Check for a varint type, just for good measure.
Dtext_format.cc1893 generator.Print(SimpleItoa(field.varint())); in PrintUnknownFields()
/external/protobuf/conformance/
Dconformance_test.cc121 string varint(uint64_t x) { in varint() function
131 string delim(const string& buf) { return cat(varint(buf.size()), buf); } in delim()
136 string zz32(int32_t x) { return varint(WireFormatLite::ZigZagEncode32(x)); } in zz32()
137 string zz64(int64_t x) { return varint(WireFormatLite::ZigZagEncode64(x)); } in zz64()
140 return varint((fieldnum << 3) | wire_type); in tag()
537 cat( tag(fieldnum, wire_type), varint(1) ), in TestPrematureEOFForType()
541 cat( tag(rep_fieldnum, wire_type), varint(1) ), in TestPrematureEOFForType()
546 cat( tag(UNKNOWN_FIELD, wire_type), varint(1) ), in TestPrematureEOFForType()
556 varint(incomplete_submsg.size()), in TestPrematureEOFForType()
566 varint(incomplete.size()), in TestPrematureEOFForType()
[all …]
/external/protobuf/objectivec/Tests/
DGPBUnknownFieldSetTest.m80 // Original field is not a varint, so use a varint.
86 // Original field *is* a varint, so use something else.
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DUnknownFieldSetLiteTest.java161 .setExtension(LiteEqualsAndHash.varint, 22) in testRoundTrips()
245 .setExtension(LiteEqualsAndHash.varint, 22) in testTruncatedInput()
/external/protobuf/java/core/src/test/proto/com/google/protobuf/
Dlite_equals_and_hash.proto69 optional int32 varint = 101; field
/external/nanopb-c/docs/
Dreference.rst421 Calculates the length of the message, encodes it as varint and then encodes the message. ::
427 A common way to indicate the message length in Protocol Buffers is to prefix it with a varint.
494 Writes the length of a string as varint and then contents of the string. Works for fields of type `…
614 Same as `pb_decode`_, except that it first reads a varint with the length of the message. ::
620 A common method to indicate message size in Protocol Buffers is to prefix it with a varint.
646 Skip a varint-length-prefixed string. This means skipping a value with wire type PB_WT_STRING. ::
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc1124 match = fields1[index1].second->varint() == in CompareUnknownFields()
1125 fields2[index2].second->varint(); in CompareUnknownFields()
1554 output = SimpleItoa(unknown_field->varint()); in PrintUnknownFieldValue()
/external/protobuf/php/ext/google/protobuf/
Dupb.c8149 PRIMITIVE_OP(INT32, varint, int32, int32_t, uint64_t) in run_decoder_vm()
8150 PRIMITIVE_OP(INT64, varint, int64, int64_t, uint64_t) in run_decoder_vm()
8151 PRIMITIVE_OP(UINT32, varint, uint32, uint32_t, uint64_t) in run_decoder_vm()
8152 PRIMITIVE_OP(UINT64, varint, uint64, uint64_t, uint64_t) in run_decoder_vm()
8157 PRIMITIVE_OP(BOOL, varint, bool, bool, uint64_t) in run_decoder_vm()
8160 PRIMITIVE_OP(SINT32, varint, int32, upb_zzdec_32, uint64_t) in run_decoder_vm()
8161 PRIMITIVE_OP(SINT64, varint, int64, upb_zzdec_64, uint64_t) in run_decoder_vm()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c8860 PRIMITIVE_OP(INT32, varint, int32, int32_t, uint64_t) in run_decoder_vm()
8861 PRIMITIVE_OP(INT64, varint, int64, int64_t, uint64_t) in run_decoder_vm()
8862 PRIMITIVE_OP(UINT32, varint, uint32, uint32_t, uint64_t) in run_decoder_vm()
8863 PRIMITIVE_OP(UINT64, varint, uint64, uint64_t, uint64_t) in run_decoder_vm()
8868 PRIMITIVE_OP(BOOL, varint, bool, bool, uint64_t) in run_decoder_vm()
8871 PRIMITIVE_OP(SINT32, varint, int32, upb_zzdec_32, uint64_t) in run_decoder_vm()
8872 PRIMITIVE_OP(SINT64, varint, int64, upb_zzdec_64, uint64_t) in run_decoder_vm()
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc2287 result = PyInt_FromLong(unknown_field_set.field(i).varint()); in CheckAndGetInteger()
/external/protobuf/objectivec/
DGPBUtilities.m1558 // Helpers to decode a varint. Not using GPBCodedInputStream version because