SizeIsValid() is used before reading the data. It's only used to check the header if the size is valid. So we could move the check in the EbmlCallbacks (holding the specs of each element).
Eventually we can also avoid allocating an element if we know beforehand the size is not valid.
SizeIsValid()is used before reading the data. It's only used to check the header if the size is valid. So we could move the check in the EbmlCallbacks (holding the specs of each element).Eventually we can also avoid allocating an element if we know beforehand the size is not valid.