Function solana_sdk::borsh0_9::get_packed_len

source ยท
pub fn get_packed_len<S>() -> usize
where S: BorshSchema,
๐Ÿ‘ŽDeprecated since 1.17.0: Please upgrade to Borsh 1.X and use borsh1::get_packed_len instead
Expand description

Get the worst-case packed length for the given BorshSchema

Note: due to the serializer currently used by Borsh, this function cannot be used on-chain in the Solana SBF execution environment.