-
I need to send raw binary data to a typescript client. How to do this?
But in Typescript flatc turns this into an array of
Does this mean there is an 8x space overhead for each byte in the Typescript flatbuffer? Considering in C++ this is a Update I just spotted Looks like the Update 2 I can't figure out how to get a union in Typescript when not using the Object API. Not sure what the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I forgot to post final solution (to "update 2") once I figured it out:
which we can use as the "accessor":
Good candidate for adding to the docs. |
Beta Was this translation helpful? Give feedback.
I forgot to post final solution (to "update 2") once I figured it out:
flatc
will generate this as part of the MyRootMsg type:which we can use as the "accessor":