To make this work have a field in the objects you want to referred to which is using the string hashing feature (see hash attribute in the flatbuffers_guide_writing_schema) documentation). This attribute can be used to directly add an #include directive to the top of the generated code that includes the specified path directly.įorce_align: this attribute may not be respected in the object API, depending on the aligned of the allocator used with new.Īn additional feature of the object API is the ability to allow you to load multiple independent FlatBuffers, and have them refer to eachothers objects using hashes which are then represented as typed pointers in the object API. Native_include("path") (at file level): Because the native_type attribute can be used to introduce types that are unknown to flatbuffers, it may be necessary to include “external” header files in the generated code. Use in C++ įinally, the following top-level attributes:
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |