[−][src]Trait solana_program::program_pack::Pack
Safely and efficiently (de)serialize account state
Associated Constants
Loading content...Provided methods
pub fn get_packed_len() -> usize[src]
Get the packed length
pub fn unpack(input: &[u8]) -> Result<Self, ProgramError> where
Self: IsInitialized, [src]
Self: IsInitialized,
Unpack from slice and check if initialized
pub fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>[src]
Unpack from slice without checking if initialized
pub fn pack(src: Self, dst: &mut [u8]) -> Result<(), ProgramError>[src]
Pack into slice