EncodeUInt32 writes a varint-encoded 32-bit unsigned integer value to the buffer preceded by the varint-encoded tag key.
(tag int, v uint32)
| 48 | |
| 49 | // EncodeUInt32 writes a varint-encoded 32-bit unsigned integer value to the buffer preceded by the varint-encoded tag key. |
| 50 | func (e *Encoder) EncodeUInt32(tag int, v uint32) { |
| 51 | e.offset += EncodeTag(e.p[e.offset:], tag, WireTypeVarint) |
| 52 | e.offset += EncodeVarint(e.p[e.offset:], uint64(v)) |
| 53 | } |
| 54 | |
| 55 | // EncodeUInt64 writes a varint-encoded 64-bit unsigned integer value to the buffer preceded by the varint-encoded tag key. |
| 56 | func (e *Encoder) EncodeUInt64(tag int, v uint64) { |