Gets a pointer to memory that contains the array buffer data.
Obtains a pointer to the memory region that holds the contents of the arraybuffer; modifications done
to the data will be visible to JavaScript code. If size
is not null, the size in bytes of
the memory region will also be stored in the pointed location.
Note that the pointer returned by this function is not guaranteed to remain the same after calls to other JSC API functions. If you plan to access the data of the arraybuffer later, you can keep a reference to the this and obtain the data pointer at a later point. Keep in mind that if JavaScript code has a chance to run, for example due to main loop events that result in JSC being called, the contents of the memory region might be modified in the meantime. Consider taking a copy of the data and using the copy instead in asynchronous code.
this |
A Value |
size |
location where to store the size of the memory region. |
pointer to memory. |