You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey folks. You may or may not know that I've been attempting to maintain a flatbuffers syntax highlighting plugin for IntelliJ IDEs. https://github.com/stefansjs/flatbuffers-intellij-plugin. I recent had an issue filed (stefansjs/flatbuffers-intellij-plugin#27) that I don't support the native_* directives. I went to look for the documentation and examples, but the examples are hard to follow because they show what the generated code looks like and not how to use them.
Can you add a "how to use" oriented documentation section the native_* documentation?
Here's my best guess
namespace Geometry;
attribute force_align;
struct Vector3D (native_type:"Native::Vector3D", force_align)
{
// according to the flatbuffers parser implementation, native_inline and native_default are only relevant to a struct
x:float (native_inline, native_default:10);
y:float;
z:float;
}
// Howerver, a custom allocator may be applied to a struct or a table, esp to allocate native struct types
table ApplicationData(native_custom_alloc:"custom_allocator") {
vectors:[Vector3D];
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey folks. You may or may not know that I've been attempting to maintain a flatbuffers syntax highlighting plugin for IntelliJ IDEs. https://github.com/stefansjs/flatbuffers-intellij-plugin. I recent had an issue filed (stefansjs/flatbuffers-intellij-plugin#27) that I don't support the native_* directives. I went to look for the documentation and examples, but the examples are hard to follow because they show what the generated code looks like and not how to use them.
Can you add a "how to use" oriented documentation section the native_* documentation?
Here's my best guess
Beta Was this translation helpful? Give feedback.
All reactions