sizeHint method
If possible give a hint of expected size of the encoding.
This method is used inside default implementation of encode
to avoid re-allocations.
Implementation
@override
int sizeHint(PalletViewFunctionMetadata value) {
var size = 32; // Fixed 32-byte ID
size += StrCodec.codec.sizeHint(value.name);
size += SequenceCodec(ViewFunctionParamMetadata.codec).sizeHint(value.inputs);
size += CompactCodec.codec.sizeHint(value.output);
size += SequenceCodec(StrCodec.codec).sizeHint(value.docs);
size += ItemDeprecationInfo.codec.sizeHint(value.deprecationInfo);
return size;
}