Open abduelhamit opened 1 month ago
The comments on Verifier.VerifyBuffer say:
Verifier.VerifyBuffer
When empty identifier is provided the identifier validation is skipped.
However, the condition for checking the file identifier only triggers if the provided identifier is "", which always leads to the ArgumentException:
""
ArgumentException
FlatBuffers: file identifier must be length4
Changing (identifier.Length == 0) to (identifier.Length != 0) provides the right behavior.
(identifier.Length == 0)
(identifier.Length != 0)
The comments on
Verifier.VerifyBuffer
say:However, the condition for checking the file identifier only triggers if the provided identifier is
""
, which always leads to theArgumentException
:Changing
(identifier.Length == 0)
to(identifier.Length != 0)
provides the right behavior.