Searched refs:EncodeVarint (Results 1 – 8 of 8) 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)))...)
125 if err := expected.EncodeVarint(uint64((extdesc1.Field << 3) | proto.WireVarint)); err != nil {128 if err := expected.EncodeVarint(1 /* bool true */); err != nil {139 if err := expected.EncodeVarint(uint64((extdesc2.Field << 3) | proto.WireBytes)); err != nil {153 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)
215 if o.EncodeVarint(i) != nil {1336 return EncodeVarint(uint64(nni)), nil
69 def EncodeVarint(write, value): function78 return EncodeVarint
375 def EncodeVarint(write, value, unused_deterministic=None): function384 return EncodeVarint
820 std::string EncodeVarint(uint64_t val) { in EncodeVarint() function831 return EncodeVarint((field_number << 3) | wire_type); in EncodeTag()836 EncodeVarint(str.size()) + str; in EncodeStringField()