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(RuntimeMetadataV14 value) {
var size = 0;
size += SequenceCodec(PortableType.codec).sizeHint(value.types);
size += SequenceCodec(PalletMetadataV14.codec).sizeHint(value.pallets);
size += ExtrinsicMetadataV14.codec.sizeHint(value.extrinsic);
size += CompactCodec.codec.sizeHint(value.type);
return size;
}