Q1) Is it safe to do a serialization with above second way?
Q2)
When I fill in the contents into the created T-suffix object, it is allowed to set an attribute that is not included in the schema like below.
sword = MyGame.Sample.Weapon.WeaponT()
sword.NonExistsAttribute = True # it causes no error
And, the serialization is done successfully. But, I think it is error-prone. Is there any verification api for this kind of check?
Hello. I'm a newbie on flatbuffers for python language.
I've got two questions about serialization with T-suffix object.
Seems that, when it comes to the serialization,
StartXXX
andEndXXX
api are used like below.But, following method can do the same thing.
Q1) Is it safe to do a serialization with above second way? Q2) When I fill in the contents into the created T-suffix object, it is allowed to set an attribute that is not included in the schema like below.
And, the serialization is done successfully. But, I think it is error-prone. Is there any verification api for this kind of check?