I\'m working on a Firefox extension that receives binary images as ArrayBuffers of uint8_t.
In my extension I load a .dll file that
You should be able to do just:
var a = new Uint8Array(1<<10); var ptr = new ctypes.uint8_t.ptr(a.buffer);
The stuff is not documented it seems, but there are some tests that demonstrate this.