Home
last modified time | relevance | path

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

12

/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/tensorflow/tensorflow/core/lib/io/
Dinputbuffer_test.cc311 string varint; in TEST() local
313 varint.clear(); in TEST()
314 core::PutVarint32(&varint, number); in TEST()
315 TF_CHECK_OK(file->Append(StringPiece(varint))); in TEST()
350 string varint; in TEST() local
352 varint.clear(); in TEST()
353 core::PutVarint64(&varint, number); in TEST()
354 TF_CHECK_OK(file->Append(StringPiece(varint))); in TEST()
/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/python/rsa/doc/
Dreference.rst73 LENGTH := varint-encoded length of the following data, in bytes
77 The varint-format was taken from Google's Protobuf_, and allows us to
/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/grpc-grpc/third_party/nanopb/docs/
Dreference.rst444 Calculates the length of the message, encodes it as varint and then encodes the message. ::
450 A common way to indicate the message length in Protocol Buffers is to prefix it with a varint.
528 Writes the length of a string as varint and then contents of the string. Works for fields of type `…
648 Same as `pb_decode`_, except that it first reads a varint with the length of the message. ::
654 A common method to indicate message size in Protocol Buffers is to prefix it with a varint.
Dconcepts.rst375 1. Functions *pb_encode_delimited* and *pb_decode_delimited* prefix the message data with a varint-…
/external/nanopb-c/docs/
Dreference.rst454 Calculates the length of the message, encodes it as varint and then encodes the message. ::
460 A common way to indicate the message length in Protocol Buffers is to prefix it with a varint.
538 Writes the length of a string as varint and then contents of the string. Works for fields of type `…
658 Same as `pb_decode`_, except that it first reads a varint with the length of the message. ::
664 A common method to indicate message size in Protocol Buffers is to prefix it with a varint.
Dconcepts.rst400 1. Functions *pb_encode_delimited* and *pb_decode_delimited* prefix the message data with a varint-…
/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/grpc-grpc/third_party/nanopb/
DCHANGELOG.txt57 Detect too large varint values when decoding.
/external/nanopb-c/
DCHANGELOG.txt118 Detect too large varint values when decoding.
/external/grpc-grpc/
DgRPC-Core.podspec274 'src/core/ext/transport/chttp2/transport/varint.h',
694 'src/core/ext/transport/chttp2/transport/varint.cc',
879 'src/core/ext/transport/chttp2/transport/varint.h',
Dgrpc.gyp453 'src/core/ext/transport/chttp2/transport/varint.cc',
838 'src/core/ext/transport/chttp2/transport/varint.cc',
1074 'src/core/ext/transport/chttp2/transport/varint.cc',
1267 'src/core/ext/transport/chttp2/transport/varint.cc',
/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()

12