google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library
https://flatbuffers.dev/
Apache License 2.0
23.16k stars 3.23k forks source link

How to print nested table using FlatBufferToString? #8268

Closed nitish2112 closed 18 hours ago

nitish2112 commented 6 months ago

Let's say there is the following schema:

table Bar {
  entry: int
}

table Foo {
  bars: [Bar]
}

Now, If I use minireflect

auto s = flatbuffers::FlatBufferToString(buf.data(), FooTypeTable());
std::cout << s << std::endl;

It prints something like:

{ [0, 1, 2, ...] }

and what I expected was something like:

{ bars: [ {entry: 0}, {entry: 1}, ..  ] }

Is there a way to add the names to the printed version?

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.

github-actions[bot] commented 18 hours ago

This issue was automatically closed due to no activity for 6 months plus the 14 day notice period.