While exploring the flatbuffer library for fast serialization, I noticed that the library had an incredibly fast way to read flatbuffer vectors into numpy arrays with the 'Variable'AsNumpy() command, but I have been unable to find (in source) a corresponding encoding method for serializing numpy to flatbuffer.
So far, I am seemingly stuck with their example:
for i in reversed(range(0, 10)):
builder.PrependByte(i)
This is obviously not ideal. In reverse, one can simply call toNumpy() on most data vectors and that works great.
Is there something simple I'm missing or is this functionality just not available?