class VarInt::LEB128::Limited64
- VarInt::LEB128::Limited64
- Reference
- Object
Overview
Special case for numbers known to fit into 64 bits: 9 bytes can be used instead of 10 to encode largest numbers
Defined in:
varint/leb128/limited_64.crClass Method Summary
- .decode(ptr : Bytes) : Tuple(UInt64, UInt8)
- .encode(i : UInt32 | UInt16 | UInt8 | Int32 | Int16 | Int8)
- .encode(i : UInt64) : Array(UInt8)
- .encode(i : Int64) : Array(UInt8)
- .encode_float(f : Float64) : Array(UInt8)