Expand description
Persistent storage for accounts.
For more information, see:
https://docs.solanalabs.com/implemented-proposals/persistent-account-storage
Structs§
- APPEND_
VEC_ MMAPPED_ FILES_ DIRTY - APPEND_
VEC_ MMAPPED_ FILES_ OPEN - APPEND_
VEC_ OPEN_ AS_ FILE_ IO - Append
Vec - A thread-safe, file-backed block of memory used to store
Account
instances. Append operations are serialized such that only one thread updates the internalappend_lock
at a time. No restrictions are placed on reading. That is, one may read items from one thread while another is appending new items. - Append
VecStored Account Meta - References to account data stored elsewhere. Getting an
Account
requires cloning (seeStoredAccountMeta::clone_account()
).
Enums§
- Append
VecError - An enum for AppendVec related errors.
Constants§
- MAXIMUM_
APPEND_ VEC_ FILE_ SIZE - STORE_
META_ OVERHEAD - size of the fixed sized fields in an append vec we need to add data len and align it to get the actual stored size
Functions§
- aligned_
stored_ size - Returns the size this item will take to store plus possible alignment padding bytes before the next entry. fixed-size portion of per-account data written plus ‘data_len’, aligned to next boundary