Searched refs:EncodeVarint (Results 1 – 9 of 9) sorted by relevance
72 func EncodeVarint(x uint64) []byte { func88 func (p *Buffer) EncodeVarint(x uint64) error { func155 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))
165 b := EncodeVarint(uint64(id)<<3 | WireBytes)175 b = append(b, EncodeVarint(uint64(len(msg)))...)
129 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 {
118 b = append(proto.EncodeVarint(201<<3|proto.WireBytes), b...)122 b = append(proto.EncodeVarint(202<<3|proto.WireVarint), 19)
213 if o.EncodeVarint(i) != nil {1334 return EncodeVarint(uint64(nni)), nil
87 func EncodeVarint(x uint64) []byte { func103 func (p *Buffer) EncodeVarint(x uint64) error { func170 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))
208 b := EncodeVarint(uint64(id)<<3 | WireBytes)218 b = append(b, EncodeVarint(uint64(len(msg)))...)
468 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)
372 def EncodeVarint(write, value): function381 return EncodeVarint