1. napi_status napi_get_dataview_info(napi_env env,
    2. napi_value dataview,
    3. size_t* byte_length,
    4. void** data,
    5. napi_value* arraybuffer,
    6. size_t* byte_offset)
    • [in] env: The environment that the API is invoked under.
    • [in] dataview: napi_value representing the DataView whose properties to query.
    • [out] byte_length: Number of bytes in the DataView.
    • [out] data: The data buffer underlying the DataView. If byte_length is 0, this may be NULL or any other pointer value.
    • [out] arraybuffer: ArrayBuffer underlying the DataView.
    • [out] byte_offset: The byte offset within the data buffer from which to start projecting the DataView.

    Returns napi_ok if the API succeeded.

    This API returns various properties of a DataView.