napi_get_dataview_info
functionv1js_native_api.hAny of the out parameters may be NULL if that property is unneeded.
napi_status napi_get_dataview_info(napi_env env,
napi_value dataview,
size_t* byte_length,
void** data,
napi_value* arraybuffer,
size_t* byte_offset)
[in] env: The environment that the API is invoked under.[in] dataview:napi_valuerepresenting theDataViewwhose properties to query.[out] byte_length: Number of bytes in theDataView.[out] data: The data buffer underlying theDataView. If byte_length is0, this may beNULLor any other pointer value.[out] arraybuffer:ArrayBufferunderlying theDataView.[out] byte_offset: The byte offset within the data buffer from which to start projecting theDataView.
Returns napi_ok if the API succeeded.
Any of the out parameters may be NULL if that property is unneeded.
This API returns various properties of a DataView.