tuweni / org.apache.tuweni.trie / CompactEncoding

CompactEncoding

class CompactEncoding (source)

Compact (Hex-prefix) encoding and decoding.

An implementation of Compact (Hex-prefix) encoding.

Properties

LEAF_TERMINATOR

static val LEAF_TERMINATOR: Byte

Functions

bytesToPath

Calculate a RADIX-16 path for a given byte sequence.

static fun bytesToPath(bytes: Bytes!): Bytes!

decode

Decode a compact-encoded path to Radix-16.

static fun decode(encoded: Bytes!): Bytes!

encode

Encode a Radix-16 path.

static fun encode(path: Bytes!): Bytes!