An application embedding nashorn for high-performance IO would like to use an external ByteBuffer (perhaps a direct NIO ByteBuffer) as the backing storage for efficiency (think zero-copy) and still be able to use the external ByteBuffer as a JavaScript array. For an example, see the function SetIndexedPropertiesToExternalArrayData in the v8 API.
|