| 2385 | } |
| 2386 | |
| 2387 | inline Napi::Value DataView::Buffer() const { |
| 2388 | napi_value arrayBuffer; |
| 2389 | napi_status status = napi_get_dataview_info(_env, |
| 2390 | _value /* dataView */, |
| 2391 | nullptr /* byteLength */, |
| 2392 | nullptr /* data */, |
| 2393 | &arrayBuffer /* arrayBuffer */, |
| 2394 | nullptr /* byteOffset */); |
| 2395 | NAPI_THROW_IF_FAILED(_env, status, Napi::Value()); |
| 2396 | return Napi::Value(_env, arrayBuffer); |
| 2397 | } |
| 2398 | |
| 2399 | inline size_t DataView::ByteOffset() const { |
| 2400 | size_t byteOffset; |
no test coverage detected