pub fn safe_realloc(
account: &AccountView,
new_size: usize,
payer: &AccountView,
) -> Result<(), ProgramError>Expand description
Reallocate an account to a new size.
Handles the rent-exemption delta and transfers lamports from/to payer.