You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Buffer api for conversion from/to ArrayBuffer #535
Js side conversion (like new Uint8Array(buffer) or new Buffer(bufferView)) is really slow cause it treats input as an integer array rather than a pointer to a memory address.
In older version of node.js which is compiled with v8 that does not support ArrayBuffer, ArrayBufferViews are constructed with node's Buffer, so there is no such problem.
Could we afford a new api like:
var buf = new Buffer(1<<28);
var arrBuf = buf.toArrayBuffer();
var buf2 = Buffer.fromArrayBuffer(arrBuf);
Activity
Fishrock123 commentedon Jan 21, 2015
Partial Duplicate of #106
Fishrock123 commentedon Jan 22, 2015
Duplicate of #177