Module solana_runtime::account_info
source · Expand description
AccountInfo represents a reference to AccountSharedData in either an AppendVec or the write cache. AccountInfo is not persisted anywhere between program runs. AccountInfo is purely runtime state. Note that AccountInfo is saved to disk buckets during runtime, but disk buckets are recreated at startup.
Structs
Enums
- specify where account data is located
Type Definitions
- offset within an append vec to account data
- how large the offset we store in AccountInfo is Note this is a smaller datatype than ‘Offset’ AppendVecs store accounts aligned to u64, so offset is always a multiple of 8 (sizeof(u64))
- bytes used to store this account in append vec Note this max needs to be big enough to handle max data len of 10MB, which is a const