Header menu logo FSharp.ATProto

Varint Module

Unsigned LEB128 varint encoding/decoding for CID binary format.

Functions and values

Function or value Description

decode data offset

Full Usage: decode data offset

Parameters:
    data : byte[]
    offset : int

Returns: uint64 * int

Decode an unsigned LEB128 varint from data at the given offset. Returns (value, bytesConsumed).

data : byte[]
offset : int
Returns: uint64 * int

encode value

Full Usage: encode value

Parameters:
    value : uint64

Returns: byte[]

Encode a uint64 as unsigned LEB128 bytes.

value : uint64
Returns: byte[]

Type something to start searching.