Skip to main content

Module codec

Module codec 

Source

Structsยง

BitReader ๐Ÿ”’
BitWriter ๐Ÿ”’
DecodedTraitLoadout
A decoded trait-loadout header and its position-ordered node selections.
DecodedTraitNode
Selection state for one positional talent node.
TraitError
Errors produced while decoding a trait loadout string.

Enumsยง

TraitErrorKind ๐Ÿ”’

Constantsยง

BASE64_CHAR_MAP ๐Ÿ”’
BASE64_LOOKUP_SIZE ๐Ÿ”’
BASE64_URL_SAFE ๐Ÿ”’
BITS_PER_BASE64_CHAR ๐Ÿ”’
CHOICE_INDEX_BITS ๐Ÿ”’
INVALID_BASE64_CHAR ๐Ÿ”’
MIN_NODE_BITS ๐Ÿ”’
RANK_BITS ๐Ÿ”’
SPEC_ID_BITS ๐Ÿ”’
TREE_HASH_LEN ๐Ÿ”’
VERSION_BITS ๐Ÿ”’

Functionsยง

build_char_map ๐Ÿ”’
decode_node ๐Ÿ”’
decode_trait_loadout
Decode a trait loadout string into structured data.
encode_minimal_loadout
Creates the version-1 loadout header for a spec with a zero tree hash and no explicit nodes.
encode_node ๐Ÿ”’
encode_trait_loadout
Encodes a trait loadout with the URL-safe Base64 alphabet.
read_u8 ๐Ÿ”’
read_u16 ๐Ÿ”’
validate_base64_chars ๐Ÿ”’