I get the error in the title when verifying the received buffer for a stripped down Monster demo (just a struct and a table).
It is raised because the generated file uses "" for the file identifier instead of null which is passed to the verifier.
Then it enters this logic:
private bool CheckBufferFromStart(string identifier, uint startPos, VerifyTableAction verifyAction)
{
if ((identifier != null) &&
(identifier.Length == 0) &&
((verifier_buffer.Length < (SIZE_U_OFFSET + FILE_IDENTIFIER_LENGTH)) || (!BufferHasIdentifier(verifier_buffer, startPos, identifier))))
{
return false;
}
if(!CheckIndirectOffset(startPos))
{
return false;
}
uint offset = GetIndirectOffset(startPos);
return CheckTable(offset, verifyAction); // && GetComputedSize()
}
It clearly checks for null.
For model generation i used: --csharp --gen-object-api
Why does this happen?
Flatc version: 23.5.26
I get the error in the title when verifying the received buffer for a stripped down Monster demo (just a struct and a table).
It is raised because the generated file uses "" for the file identifier instead of null which is passed to the verifier.
Then it enters this logic:
It clearly checks for null.
For model generation i used:
--csharp --gen-object-apiWhy does this happen?
Flatc version: 23.5.26