On Tue, Nov 11, 2014 at 12:22 AM, Flying Jester <[email protected]> wrote:
> How would I set the contents of an ArrayBuffer from native code?

Depends on whether you are creating a new ArrayBuffer or mutating an
existing one.

In the first case, you call the three argument version of
ArrayBuffer::New() and pass in a memory buffer.

In the second case, you call ArrayBuffer::Externalize(); the Contents
object it returns has a Data() method that returns a pointer to the
array buffer's memory.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to