fn calcSize(params: anytype) usize
Compute the number of bytes required to serialize params
params
params: anytype,