MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / Buffer

Method Buffer

napi-inl.h:2387–2397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2385}
2386
2387inline 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
2399inline size_t DataView::ByteOffset() const {
2400 size_t byteOffset;

Callers 2

GetTypedArrayBufferValueFunction · 0.80
GetBufferFunction · 0.80

Calls 1

ValueFunction · 0.70

Tested by

no test coverage detected