Buffer object can also be used with typed arrays. The buffer object is cloned to an ArrayBuffer that is used as the backing store for the typed array. The memory of the buffer and the ArrayBuffer is not shared."In v0.10 Node had its own ArrayBuffer implementation. Now that they are natively supported by V8 that functionality has changed in v0.12.
"ABufferobject can also be used with typed arrays. The buffer object is cloned to anArrayBufferthat is used as the backing store for the typed array.
var ab = new Uint32Array(new Buffer(16));and getab.length == 4;but this is not soab.length is 16is it a bug? or I get that paragraph wrong?
Buffer object can also be used with typed arrays" that I am not aware of.It's copying each octet from the Buffer to the ArrayBuffer. Despite the type of TypedArray. Hence why they have the same length.
In v0.10 Node had its own ArrayBuffer implementation. Now that they are natively supported by V8 that functionality has changed in v0.12.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/cbad534f-06c2-45b7-8640-a563a2dd4421%40googlegroups.com.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.