isSizeZero method
Is Size Zero
Iterate through the inner codecs if available, and find whether any of it is non-zero size or not.
Helps to avoid encoding or decoding the values who encapsulates the empty Composite Codec inside one another.
Implementation
@override
bool isSizeZero() {
return StrCodec.codec.isSizeZero() &&
OptionCodec(PalletStorageMetadata.codec).isSizeZero() &&
OptionCodec(PalletCallMetadata.codec).isSizeZero() &&
OptionCodec(PalletEventMetadata.codec).isSizeZero() &&
SequenceCodec(PalletConstantMetadata.codec).isSizeZero() &&
OptionCodec(PalletErrorMetadata.codec).isSizeZero() &&
U8Codec.codec.isSizeZero();
}