I'm using a new one. The rub is that I want the buffer to be handled by GC'ing, so externalizing is not an option.
On Monday, November 10, 2014 2:30:32 PM UTC-9, Ben Noordhuis wrote: > > On Tue, Nov 11, 2014 at 12:22 AM, Flying Jester <[email protected] > <javascript:>> 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.
