libbgcode
libbgcode copied to clipboard
Block parameter size?
According to the spec, the size of the block parameters is variable, but not defined anywhere in the block.
This is not a good idea, since a generic reader will not know how to skip past block types that may be defined in the future.
Two possible solutions are suggested:
- Include a field with the block parameter size, or
- Let the block data size include the size of the block parameters as well
You should also be explicit about whether the block size includes or does not include the size of the checksum.