nasa / EdsLib

CCSDS SOIS Electronic Data Sheet Tool and Library
Apache License 2.0
31 stars 12 forks source link

Fix #8, only use "Buffer" type if derivatives extend containers #9

Closed jphickey closed 2 years ago

jphickey commented 2 years ago

No need to use the "Buffer" type in a parent container that refers to a base type, when the derivatives do not actually add any additional entries to the container.

This corrects the structure and derivative list generator scripts to only check whether the max_size (size of largest derivative) is actually larger than that of the base type.