Std.Varint
9 public declarations
- decodeSleb128
&Array[UInt8] -> Int -> Option[Std.Varint.SignedVarintDecodeResult]Decodes a signed 64-bit integer from ZigZag LEB128 bytes starting at `offset`.
- decodeUleb128
&Array[UInt8] -> Int -> Option[Std.Varint.VarintDecodeResult]Decodes an unsigned 64-bit integer from LEB128 bytes starting at `offset`.
- encodedLengthUleb128
UInt64 -> IntComputes the exact number of bytes required to encode `value` in ULEB128.
- encodeSleb128
Int -> Array[UInt8]Encodes a signed 64-bit integer using ZigZag LEB128 encoding.
- encodeUleb128
UInt64 -> Array[UInt8]Encodes an unsigned 64-bit integer into little-endian LEB128 bytes.
- fromZigZag
UInt64 -> IntReverses a ZigZag-encoded unsigned 64-bit integer back to a signed integer.
- SignedVarintDecodeResult
Decoded signed 64-bit varint value and the number of bytes consumed.
- toZigZag
Int -> UInt64Maps a signed 64-bit integer to an unsigned 64-bit ZigZag representation.
- VarintDecodeResult
Decoded unsigned 64-bit varint value and the number of bytes consumed.
