[webkit-help] Defining ArrayBuffer contents via JavaScriptCore API

Anthony Johnson anthony.johnson at flexsim.com
Thu Aug 18 09:47:32 PDT 2011


Is there are way, through the JavaScriptCore C API, to create an ArrayBuffer
and define its contents via a single memory copy, i.e. memcpy()? I could
probably create a DataView, and then use
setUint8<https://developer.mozilla.org/en/JavaScript_typed_arrays/DataView#setUint8>
to
manually copy each character of the buffer, but the whole idea is I want to
have the least amount of overhead in transferring large amounts of data
between c and javascript.
Thanks,
Anthony Johnson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20110818/c159c2e1/attachment.html>


More information about the webkit-help mailing list