get_packed_len

Function get_packed_len 

Source
pub fn get_packed_len<S: BorshSchema>() -> usize
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 Gemachain BPF execution environment.