gpointer jsc_value_array_buffer_get_data ( JSCValue* value, gsize* size )
Gets a pointer to memory that contains the array buffer data.
Obtains a pointer to the memory region that holds the contents of the
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
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.
Location where to store the size of the memory region.
|The argument can be |
|The data is owned by the caller of the function.|