Home
last modified time | relevance | path

Searched refs:EncodeVarint (Results 1 – 9 of 9) sorted by relevance

/external/golang-protobuf/proto/
Dencode.go72 func EncodeVarint(x uint64) []byte { func
88 func (p *Buffer) EncodeVarint(x uint64) error { func
155 return p.EncodeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63))))
163 return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31))))
170 p.EncodeVarint(uint64(len(b)))
178 p.EncodeVarint(uint64(len(s)))
192 p.EncodeVarint(uint64(siz))
Dmessage_set.go165 b := EncodeVarint(uint64(id)<<3 | WireBytes)
175 b = append(b, EncodeVarint(uint64(len(msg)))...)
Dextensions_test.go129 if err := expected.EncodeVarint(uint64((extdesc1.Field << 3) | proto.WireVarint)); err != nil {
132 if err := expected.EncodeVarint(1 /* bool true */); err != nil {
143 if err := expected.EncodeVarint(uint64((extdesc2.Field << 3) | proto.WireBytes)); err != nil {
157 if err := expected.EncodeVarint(uint64((extdesc3.Field << 3) | proto.WireBytes)); err != nil {
Dtext_test.go118 b = append(proto.EncodeVarint(201<<3|proto.WireBytes), b...)
122 b = append(proto.EncodeVarint(202<<3|proto.WireVarint), 19)
Dall_test.go213 if o.EncodeVarint(i) != nil {
1334 return EncodeVarint(uint64(nni)), nil
/external/syzkaller/vendor/github.com/golang/protobuf/proto/
Dencode.go87 func EncodeVarint(x uint64) []byte { func
103 func (p *Buffer) EncodeVarint(x uint64) error { func
170 return p.EncodeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63))))
178 return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31))))
185 p.EncodeVarint(uint64(len(b)))
193 p.EncodeVarint(uint64(len(s)))
207 p.EncodeVarint(uint64(siz))
Dmessage_set.go208 b := EncodeVarint(uint64(id)<<3 | WireBytes)
218 b = append(b, EncodeVarint(uint64(len(msg)))...)
/external/syzkaller/vendor/google.golang.org/genproto/googleapis/api/annotations/
Dhttp.pb.go468 b.EncodeVarint(2<<3 | proto.WireBytes)
471 b.EncodeVarint(3<<3 | proto.WireBytes)
474 b.EncodeVarint(4<<3 | proto.WireBytes)
477 b.EncodeVarint(5<<3 | proto.WireBytes)
480 b.EncodeVarint(6<<3 | proto.WireBytes)
483 b.EncodeVarint(8<<3 | proto.WireBytes)
/external/protobuf/python/google/protobuf/internal/
Dencoder.py372 def EncodeVarint(write, value): function
381 return EncodeVarint