mikeseven / node-opencl

Low-level OpenCL 1.x and 2.x bindgings for node.js
156 stars 33 forks source link

replace old typed arrays with v8:ArrayBuffer as node does in node::Buffer #10

Closed mikeseven closed 9 years ago

mikeseven commented 9 years ago

TypedArrays where experimental in node and are not available anymore. They were also experimental in v8 but it's not until node 3.0 that access to buffer data in native is possible again. node::Buffer uses v8::ArrayBuffer so we should do the same.

Also check getting data from JS array, this may have changed