In the next release, we are adding some functionality to easier work with “buffers”. These buffers allow for easier communication between extensions and Lua, and we use them for instance to pass large data such as video or camera images from an extension to the engine (via Lua). The next release will allow you to do this directly from Lua.
Here is an example of this in action: creating a buffer (with pixels), and overwriting the texture of a sprite (the entire atlas)