We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's a simple schema:
$ cat test.fbs namespace abc; file_extension "abc"; struct ABCWord { w: [uint32:4]; } table Root { words: [ABCWord]; } root_type Root;
I compile it with the latest version of flatc like this:
flatc
$ flatc --version flatc version 24.3.25 $ flatc --gen-object-api --python test.fbs
In the resulting file abc/ABCWord.py, the function is defined like this:
abc/ABCWord.py
def CreateABCWord(builder, w): builder.Prep(4, 16) for _idx0 in range(4 , 0, -1): builder.PrependUint32(w[_idx0-1]) return builder.Offset()
However, the object API calls the above function like this:
class ABCWordT(object): # ABCWordT def Pack(self, builder): return CreateAbcword(builder, self.w)
As we can see, the ABCWordT.Pack() method should call the function CreateABCWord(), not CreateAbcword().
ABCWordT.Pack()
CreateABCWord()
CreateAbcword()
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Here's a simple schema:
I compile it with the latest version of
flatc
like this:In the resulting file
abc/ABCWord.py
, the function is defined like this:However, the object API calls the above function like this:
As we can see, the
ABCWordT.Pack()
method should call the functionCreateABCWord()
, notCreateAbcword()
.The text was updated successfully, but these errors were encountered: