Programming Model
AccountLoader (Anchor)
📖O que é
An Anchor account type that provides zero-copy access to large account data without deserializing the entire account upfront. AccountLoader wraps the raw account data and provides load() and load_mut() methods to access the data as a typed reference. It is used with #[account(zero_copy)] structs and is preferred over Account<T> when accounts exceed ~1KB, as it significantly reduces compute unit consumption.
Sua exploração
0 termos visitados no totalTermos relacionados explorados0/3
Termos Relacionados
Zero-Copy DeserializationProgramming Model
A technique for accessing on-chain account data directly from the underlying byte buffer w…
Ver termo →Framework AnchorDev Tools
The most popular framework for building Solana programs in Rust. Anchor provides macros (#…
Ver termo →Account DataProgramming Model
The byte array stored in an account that holds program-specific state. Data is typically s…
Ver termo →