Const
js to native[host]: a pointer to the existing bytes. The payload keeps the Uint8Array referenced until release(), so the memory stays valid for as long as native code may read it.
js
native[host]
Uint8Array
release()
jstonative[host]: a pointer to the existing bytes. The payload keeps theUint8Arrayreferenced untilrelease(), so the memory stays valid for as long as native code may read it.