Module state

Source
Expand description

Type-length-value structure definition and manipulation

Structs§

TlvStateBorrowed
Encapsulates immutable base state data (mint or account) with possible extensions
TlvStateMut
Encapsulates mutable base state data (mint or account) with possible extensions
TlvStateOwned
Encapsulates owned TLV data

Traits§

TlvState
Trait for all TLV state

Functions§

realloc_and_pack_first_variable_len
Packs a variable-length value into an existing TLV space, where no repeating discriminators are allowed
realloc_and_pack_variable_len_with_repetition
Packs a variable-length value into an existing TLV space, reallocating the account and TLV as needed to accommodate for any change in space