Skip to main content

deserialize_accounts

Function deserialize_accounts 

Source
pub unsafe fn deserialize_accounts<const MAX: usize>(
    input: *mut u8,
    accounts: &mut [MaybeUninit<AccountView>; MAX],
) -> (Address, usize, &'static [u8])
Expand description

Deserialize the loader input into AccountViews.

Duplicate-account resolution happens here. A duplicate slot reuses the canonical RuntimeAccount pointer of the earlier slot it references, and its original_index remains the loader slot where it appeared.

ยงSafety

input must point to a valid Solana BPF input buffer.