solana_accounts_db::append_vec

Function aligned_stored_size

source
pub fn aligned_stored_size(data_len: usize) -> usize
Expand description

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