/frameworks/base/libs/protoutil/src/ |
protobuf.cpp | 23 read_wire_type(uint32_t varint) 25 return (uint8_t) (varint & WIRE_TYPE_MASK); 29 read_field_id(uint32_t varint) 31 return varint >> FIELD_ID_SHIFT; 35 get_varint_size(uint64_t varint) 38 while ((varint & ~0x7F)) { 40 varint >>= 7;
|
/frameworks/base/libs/protoutil/include/android/util/ |
protobuf.h | 34 * Read the wire type from varint, it is the smallest 3 bits. 36 uint8_t read_wire_type(uint32_t varint); 39 * Read field id from varint, it is varint >> 3; 41 uint32_t read_field_id(uint32_t varint); 44 * Get the size of a varint. 46 size_t get_varint_size(uint64_t varint); 49 * Write a varint into the buffer. Return the next position to write at.
|
/prebuilts/go/darwin-x86/src/runtime/pprof/ |
protobuf.go | 14 func (b *protobuf) varint(x uint64) { func 23 b.varint(uint64(tag)<<3 | 2) 24 b.varint(uint64(len)) 28 // append varint to b.data 29 b.varint(uint64(tag)<<3 | 0) 30 b.varint(x) 38 b.varint(u) 77 b.varint(uint64(u))
|
/prebuilts/go/linux-x86/src/runtime/pprof/ |
protobuf.go | 14 func (b *protobuf) varint(x uint64) { func 23 b.varint(uint64(tag)<<3 | 2) 24 b.varint(uint64(len)) 28 // append varint to b.data 29 b.varint(uint64(tag)<<3 | 0) 30 b.varint(x) 38 b.varint(u) 77 b.varint(uint64(u))
|
/prebuilts/go/darwin-x86/src/debug/dwarf/ |
buf.go | 118 // Read a varint, which is 7 bits per byte, little endian. 120 func (b *buf) varint() (c uint64, bits uint) { func 134 // Unsigned int is just a varint. 136 x, _ := b.varint() 140 // Signed int is a sign-extended varint. 142 ux, bits := b.varint()
|
/prebuilts/go/linux-x86/src/debug/dwarf/ |
buf.go | 118 // Read a varint, which is 7 bits per byte, little endian. 120 func (b *buf) varint() (c uint64, bits uint) { func 134 // Unsigned int is just a varint. 136 x, _ := b.varint() 140 // Signed int is a sign-extended varint. 142 ux, bits := b.varint()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
UnknownFieldSet.java | 436 * Convenience method for merging a new field containing a single varint 733 /** Get the list of varint values for this field. */ 734 public List<Long> getVarintList() { return varint; } 775 varint, 788 for (final long value : varint) { 811 for (final long value : varint) { 855 private List<Long> varint; field in class:UnknownFieldSet.Field 885 if (result.varint == null) { 886 result.varint = Collections.emptyList(); 888 result.varint = Collections.unmodifiableList(result.varint) [all...] |
/external/golang-protobuf/jsonpb/jsonpb_test_proto/ |
more_test_objects.pb.go | 133 Nummy map[int64]int32 `protobuf:"bytes,1,rep,name=nummy" json:"nummy,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 135 Objjy map[int32]*Simple3 `protobuf:"bytes,3,rep,name=objjy" json:"objjy,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 136 Buggy map[int64]string `protobuf:"bytes,4,rep,name=buggy" json:"buggy,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 137 Booly map[bool]bool `protobuf:"bytes,5,rep,name=booly" json:"booly,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 138 Enumy map[string]Numeral `protobuf:"bytes,6,rep,name=enumy" json:"enumy,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=jsonpb.Numeral"` 139 S32Booly map[int32]bool `protobuf:"bytes,7,rep,name=s32booly" json:"s32booly,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 140 S64Booly map[int64]bool `protobuf:"bytes,8,rep,name=s64booly" json:"s64booly,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" [all...] |
/frameworks/base/cmds/incidentd/src/ |
PrivacyBuffer.cpp | 37 uint64_t varint = 0; local 41 varint = mData.readRawVarint(); 44 mProto.writeRawVarint(varint);
|
/external/protobuf/js/binary/ |
decoder.js | 444 * Reads an unsigned varint from the binary stream and stores it as a split 448 * It's possible for an unsigned varint to be incorrectly encoded - more than 463 // Read the first four bytes of the varint, stopping at the terminator if we 497 goog.asserts.fail('Failed to read varint, encoding is invalid.'); 503 * Skips over a varint in the block without decoding it. 514 * Skips backwards over a varint in the block - to do this correctly, we have 516 * @param {number} value The varint value to unskip. 528 * Reads a 32-bit varint from the binary stream. Due to a quirk of the encoding 535 * If there are more than 32 bits of data in the varint, it _must_ be due to 543 * @return {number} The decoded unsigned 32-bit varint [all...] |
encoder.js | 79 * varint representation and stores it in the buffer. 103 * Encodes a 32-bit unsigned integer into its wire-format varint representation 122 * Encodes a 32-bit signed integer into its wire-format varint representation 150 * Encodes a 64-bit unsigned integer into its wire-format varint representation 166 * Encodes a 64-bit signed integer into its wire-format varint representation 182 * Encodes a JavaScript integer into its wire-format, zigzag-encoded varint 195 * Encodes a JavaScript integer into its wire-format, zigzag-encoded varint 350 * Writes a boolean value to the buffer as a varint. 360 * Writes an enum value to the buffer as a varint. 382 * buffer as a varint [all...] |
/prebuilts/go/darwin-x86/src/cmd/internal/gcprog/ |
gcprog.go | 19 // 1nnnnnnn c: repeat the previous n bits c times; c is a varint 130 w.varint(n) 132 w.varint(c) 227 // readvarint reads a varint from p, returning the value and the remainder of p. 253 // varint emits the varint encoding of x. 254 func (w *Writer) varint(x int64) { func 256 panic("gcprog: negative varint")
|
/prebuilts/go/linux-x86/src/cmd/internal/gcprog/ |
gcprog.go | 19 // 1nnnnnnn c: repeat the previous n bits c times; c is a varint 130 w.varint(n) 132 w.varint(c) 227 // readvarint reads a varint from p, returning the value and the remainder of p. 253 // varint emits the varint encoding of x. 254 func (w *Writer) varint(x int64) { func 256 panic("gcprog: negative varint")
|
/external/protobuf/src/google/protobuf/ |
unknown_field_set_unittest.cc | 140 TEST_F(UnknownFieldSetTest, Varint) { 145 EXPECT_EQ(all_fields_.optional_int32(), field->varint()); 186 EXPECT_EQ(all_fields_.optionalgroup().a(), nested_field.varint()); 338 EXPECT_EQ(654321, destination.unknown_fields().field(0).varint()); 446 EXPECT_EQ(5, unknown_fields.field(0).varint()); 450 EXPECT_EQ(4, unknown_fields.field(1).varint()); 454 EXPECT_EQ(6, unknown_fields.field(2).varint()); 476 EXPECT_EQ(5, unknown_fields.field(0).varint()); 480 EXPECT_EQ(4, unknown_fields.field(1).varint()); 484 EXPECT_EQ(6, unknown_fields.field(2).varint()); [all...] |
/external/tensorflow/tensorflow/core/lib/io/ |
inputbuffer_test.cc | 310 string varint; local 312 varint.clear(); 313 core::PutVarint32(&varint, number); 314 TF_CHECK_OK(file->Append(StringPiece(varint))); 349 string varint; local 351 varint.clear(); 352 core::PutVarint64(&varint, number); 353 TF_CHECK_OK(file->Append(StringPiece(varint)));
|
/prebuilts/go/darwin-x86/src/encoding/binary/ |
varint.go | 7 // This file implements "varint" encoding of 64-bit integers. 25 // format incompatible with a varint encoding for larger numbers (say 128-bit). 32 // MaxVarintLenN is the maximum length of a varint-encoded N-bit integer. 86 // Varint decodes an int64 from buf and returns that value and the 94 func Varint(buf []byte) (int64, int) { 103 var overflow = errors.New("binary: varint overflows a 64-bit integer")
|
/prebuilts/go/linux-x86/src/encoding/binary/ |
varint.go | 7 // This file implements "varint" encoding of 64-bit integers. 25 // format incompatible with a varint encoding for larger numbers (say 128-bit). 32 // MaxVarintLenN is the maximum length of a varint-encoded N-bit integer. 86 // Varint decodes an int64 from buf and returns that value and the 94 func Varint(buf []byte) (int64, int) { 103 var overflow = errors.New("binary: varint overflows a 64-bit integer")
|
/prebuilts/misc/darwin-x86_64/protobuf2.5/include/google/protobuf/ |
unknown_field_set.h | 174 inline uint64 varint() const; 257 inline uint64 UnknownField::varint () const { function in class:google::protobuf::UnknownField
|
/prebuilts/misc/linux-x86_64/protobuf2.5/include/google/protobuf/ |
unknown_field_set.h | 174 inline uint64 varint() const; 257 inline uint64 UnknownField::varint () const { function in class:google::protobuf::UnknownField
|
/prebuilts/misc/windows/protobuf2.5/include/google/protobuf/ |
unknown_field_set.h | 174 inline uint64 varint() const; 257 inline uint64 UnknownField::varint () const { function in class:google::protobuf::UnknownField
|
/prebuilts/tools/linux-x86_64/protoc/include/google/protobuf/ |
unknown_field_set.h | 174 inline uint64 varint() const; 257 inline uint64 UnknownField::varint () const { function in class:google::protobuf::UnknownField
|
/external/golang-protobuf/proto/proto3_proto/ |
proto3.pb.go | 66 Hilarity Message_Humour `protobuf:"varint,2,opt,name=hilarity,enum=proto3_proto.Message_Humour" json:"hilarity,omitempty"` 67 HeightInCm uint32 `protobuf:"varint,3,opt,name=height_in_cm,json=heightInCm" json:"height_in_cm,omitempty"` 69 ResultCount int64 `protobuf:"varint,7,opt,name=result_count,json=resultCount" json:"result_count,omitempty"` 70 TrueScotsman bool `protobuf:"varint,8,opt,name=true_scotsman,json=trueScotsman" json:"true_scotsman,omitempty"` 72 Key []uint64 `protobuf:"varint,5,rep,packed,name=key" json:"key,omitempty"` 73 ShortKey []int32 `protobuf:"varint,19,rep,packed,name=short_key,json=shortKey" json:"short_key,omitempty"` 75 RFunny []Message_Humour `protobuf:"varint,16,rep,packed,name=r_funny,json=rFunny,enum=proto3_proto.Message_Humour" json:"r_funny,omitempty"` 218 Cute bool `protobuf:"varint,2,opt,name=cute" json:"cute,omitempty"` 241 ByteMapping map[bool][]byte `protobuf:"bytes,1,rep,name=byte_mapping,json=byteMapping" json:"byte_mapping,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"` 257 Rtt map[int32]int32 `protobuf:"bytes,1,rep,name=rtt" json:"rtt,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" [all...] |
/external/golang-protobuf/proto/ |
message_set.go | 63 TypeId *int32 `protobuf:"varint,2,req,name=type_id"` 180 // Remove the wire type and field number varint, as well as the length varint. 212 // Restore wire type and field number varint, plus length varint. 216 // Existing data; rip off the tag and length varint 220 _, n := DecodeVarint(o) // calculate length of length varint 221 o = o[n:] // skip length varint
|
/external/golang-protobuf/protoc-gen-go/testdata/my_test/ |
test.pb.go | 181 Key []int64 `protobuf:"varint,1,rep,name=key" json:"key,omitempty"` 183 Hue *Request_Color `protobuf:"varint,3,opt,name=hue,enum=my.test.Request_Color" json:"hue,omitempty"` 184 Hat *HatType `protobuf:"varint,4,opt,name=hat,enum=my.test.HatType,def=1" json:"hat,omitempty"` 189 NameMapping map[int32]string `protobuf:"bytes,14,rep,name=name_mapping,json=nameMapping" json:"name_mapping,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 192 Reset_ *int32 `protobuf:"varint,12,opt,name=reset" json:"reset,omitempty"` 270 GroupField *int32 `protobuf:"varint,9,opt,name=group_field,json=groupField" json:"group_field,omitempty"` 287 CompactKeys []int32 `protobuf:"varint,2,rep,packed,name=compact_keys,json=compactKeys" json:"compact_keys,omitempty"` 319 KeyThatNeeds_1234Camel_CasIng *int64 `protobuf:"varint,1,req,name=key_that_needs_1234camel_CasIng,json=keyThatNeeds1234camelCasIng" json:"key_that_needs_1234camel_CasIng,omitempty"` 320 Value *int64 `protobuf:"varint,2,opt,name=value,def=7" json:"value,omitempty"` 321 XMyFieldName_2 *int64 `protobuf:"varint,3,opt,name=_my_field_name_2,json=MyFieldName2" json:"_my_field_name_2,omitempty" [all...] |
/external/golang-protobuf/proto/testdata/ |
test.pb.go | 308 Foo *FOO `protobuf:"varint,1,req,name=foo,enum=testdata.FOO" json:"foo,omitempty"` 351 Kind *GoTest_KIND `protobuf:"varint,1,req,name=Kind,enum=testdata.GoTest_KIND" json:"Kind,omitempty"` 353 Param *int32 `protobuf:"varint,3,opt,name=Param" json:"Param,omitempty"` 359 F_BoolRequired *bool `protobuf:"varint,10,req,name=F_Bool_required,json=FBoolRequired" json:"F_Bool_required,omitempty"` 360 F_Int32Required *int32 `protobuf:"varint,11,req,name=F_Int32_required,json=FInt32Required" json:"F_Int32_required,omitempty"` 361 F_Int64Required *int64 `protobuf:"varint,12,req,name=F_Int64_required,json=FInt64Required" json:"F_Int64_required,omitempty"` 364 F_Uint32Required *uint32 `protobuf:"varint,15,req,name=F_Uint32_required,json=FUint32Required" json:"F_Uint32_required,omitempty"` 365 F_Uint64Required *uint64 `protobuf:"varint,16,req,name=F_Uint64_required,json=FUint64Required" json:"F_Uint64_required,omitempty"` 373 F_BoolRepeated []bool `protobuf:"varint,20,rep,name=F_Bool_repeated,json=FBoolRepeated" json:"F_Bool_repeated,omitempty"` 374 F_Int32Repeated []int32 `protobuf:"varint,21,rep,name=F_Int32_repeated,json=FInt32Repeated" json:"F_Int32_repeated,omitempty" [all...] |