Unless I'm missing something - it just make sense if you are able to set pointer and length to an object via SetIndexedPropertiesToExternalArrayData() there should be a way to ask them back... Dont you think? :)
On Thu, Jun 10, 2010 at 4:14 PM, Camilo Aguilar <[email protected]>wrote: > I think in nodejs, they do something similar in the Buffer implementation. > > On Thu, Jun 10, 2010 at 5:45 PM, vlad vladbph <[email protected]> wrote: > >> ...besides putting explicitly into internal fields.... >> >> >> On Thu, Jun 10, 2010 at 2:14 PM, vlad <[email protected]> wrote: >> >>> Hi, >>> If there is a way to tell an object to point to external array like >>> this... >>> obj->SetIndexedPropertiesToExternalArrayData(pBuffer, >>> v8::kExternalByteArray, bufferLength); >>> >>> is there any way to get the buffer pointer and length back from the >>> object when received for example in a callback? >>> >>> Thanks >>> Vlad >>> >> >> -- >> v8-users mailing list >> [email protected] >> http://groups.google.com/group/v8-users >> > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
