solana_program::borsh

Function get_packed_len

source
pub fn get_packed_len<S: BorshSchema>() -> usize
👎Deprecated since 1.17.0: Please use borsh0_10::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.