ReadVarUint64 reads unsigned varint
(err *Error)
| 1167 | |
| 1168 | // ReadVarUint64 reads unsigned varint |
| 1169 | func (b *ByteBuffer) ReadVarUint64(err *Error) uint64 { |
| 1170 | if b.remaining() >= 9 { |
| 1171 | return b.readVarUint64Fast() |
| 1172 | } |
| 1173 | return b.readVarUint64Slow(err) |
| 1174 | } |
| 1175 | |
| 1176 | // Fast path (when the remaining bytes are sufficient) |
| 1177 | func (b *ByteBuffer) readVarUint64Fast() uint64 { |