solana_accounts_db::tiered_storage::mmap_utils

Function get_pod

source
pub fn get_pod<T: AnyBitPattern>(
    mmap: &Mmap,
    offset: usize,
) -> Result<(&T, usize)>
Expand description

Borrows a value of type T from mmap

Type T must be plain ol’ data to ensure no undefined behavior.