pub fn zero_init(data: &mut [u8])
Zero-initialize a byte slice. Must be called before write_header.
write_header
Solana does NOT guarantee zeroed account data on creation. Always call this on freshly allocated accounts.