Skip to content
New issue

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

[Python] No functional API to create a flatbuffer #8222

Open
jarkenau opened this issue Jan 23, 2024 · 0 comments
Open

[Python] No functional API to create a flatbuffer #8222

jarkenau opened this issue Jan 23, 2024 · 0 comments

Comments

@jarkenau
Copy link

jarkenau commented Jan 23, 2024

In C++, there are convenient Create(...) functions available for creating a flatbuffer without using the object API . For instance:

inline flatbuffers::Offset<Point> CreatePoint(
    flatbuffers::FlatBufferBuilder &_fbb,
    double x = 0.0,
    double y = 0.0,
    double z = 0.0) {
  PointBuilder builder_(_fbb);
  builder_.add_z(z);
  builder_.add_y(y);
  builder_.add_x(x);
  return builder_.Finish();
}

Generated with flatc version: 23.5.26

Unfortunately, such functions do not exist for Python. Is there any particular reason against this? Or has simply nobody worked on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant