pub fn append_account(
        &self,
        storage_meta: StoredMeta,
        account: &AccountSharedData,
        hash: Hash,
    ) -> Option<usize> {
        let res = self.append_accounts(&[(storage_meta, Some(account))], &[&hash]);
        if res.len() == 1 {
            None
        } else {
            res.first().cloned()
        }
    }
/// Copy the account metadata, account and hash to the internal buffer.
/// Return the starting offset of the account metadata.
/// After the account is appended, the internal `current_len` is updated.
Copy the account metadata, account and hash to the internal buffer.
Return the starting offset of the account metadata.
After the account is appended, the internal `current_len` is updated.
Copy the account metadata account and hash to the internal buffer . Return the starting offset of the account metadata . After the account is appended the internal ` current_len ` is updated .
pub fn append_account(
        &self,
        storage_meta: StoredMeta,
        account: &AccountSharedData,
        hash: Hash,
    ) -> Option<usize> {
        let res = self.append_accounts(&[(storage_meta, Some(account))], &[&hash]);
        if res.len() == 1 {
            None
        } else {
            res.first().cloned()
        }
    }
pub fn append_account ( & self , storage_meta : StoredMeta , account : & AccountSharedData , hash : Hash , ) -> Option < usize > { let res = self . append_accounts ( & [ ( storage_meta , Some ( account ) ) ] , & [ & hash ] ) ; if res . len ( ) == 1 { None } else { res . first ( ) . cloned ( ) } }
Copy the account metadata, account and hash to the internal buffer.
Copy the account metadata account and hash to the internal buffer .
&self
storage_meta
StoredMeta
account
&AccountSharedData
hash
Hash