Skip to main content

zero_account_data

Function zero_account_data 

Source
pub fn zero_account_data(account: &AccountView)
Expand description

Zero-fill account data using SVM-optimized memset.

More efficient than the byte-by-byte loop in AccountView::close(). Use this when you need to clear account data without closing the account.