pub fn zero_account_data(account: &AccountView<'_>) -> Result<(), ProgramError>Expand description
Zero-fill account data using SVM-optimized memset.
Use this when you need to clear account data without closing the account.
Fails with AccountBorrowFailed if any data borrow (shared or exclusive)
is outstanding: the memset would mutate memory a live Ref/RefMut
still points at.