In terms of the fbs specification, a table consists of two parts, a vtable , indicating all the fields in a table, and a binary array, containing all the actual field data. If you need to get a table as a field inside another table from a generated flatbuffer, just get the corresponding vtable and the actual data, then add a header to be a new flatbuffer.
In other words, it is theoretically possible to intercept the table fields from the generated flatbuffer and recreate a new flatbuffers.
In practice, there is no such API available. (If you are familiar with fbs, you can develop it yourself.)
see, I typed a shorter response, so I got to go first :P
Missing a thumbs up here.
builder.createbytevector so have tried working a similar approach with
// 1. create nested FB with its own builder ... store finished buffer into asUint8Array // 2. builder for root_table ... offset from generated table field createvector with nested FB asUint8Array // 3. start root table ... add root table nested FB with above offset
the nested FB is not accessible on the server side when sent from the client....
maybe its my fetch request but I am sending raw bytes via fetch
asUInt8Array().slice(0)needed for nested and send data
unitfrom a string into an enum, making it as small as 1 byte