Is there any way to verify bytearray with flatbuffer structure in it with flatbuffer verifier if tables in schema for that two object starts from similar data types?
Example schema:
table AddTaskResponse{
blablabla:int;
foobar:int;
}
table AddTaskRequest{
requestId:int;
taskId:int;
profileId:string;
}
My current experiments shows me:
flatbuffers::Verifier verifier(reinterpret_cast<unsigned char*>(data.data()),data.size());
bool isaddTaskResponse = VerifyAddTaskResponseBuffer(verifier);
bool isaddTaskRequest = VerifyAddTaskRequestBuffer(verifier);
Both bools flags isaddTaskResponse and isaddTaskRequest are true and their true state not depends from the actual structure i send AddTaskResponse
or AddTaskRequest
.