js-ctypes from javascript objects

后端 未结 1 1574
情书的邮戳
情书的邮戳 2021-01-07 03:49

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

相关标签:
1条回答
  • 2021-01-07 04:33

    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.

    0 讨论(0)
提交回复
热议问题