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

Method ByteLength

napi-inl.h:2166–2172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2164}
2165
2166inline size_t SharedArrayBuffer::ByteLength() {
2167 size_t length;
2168 napi_status status =
2169 napi_get_arraybuffer_info(_env, _value, nullptr, &length);
2170 NAPI_THROW_IF_FAILED(_env, status, 0);
2171 return length;
2172}
2173#endif // NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER
2174
2175////////////////////////////////////////////////////////////////////////////////

Callers 13

NewMethod · 0.80
GetTypedArrayByteLengthFunction · 0.80
CreateBufferFunction · 0.80
CreateExternalBufferFunction · 0.80
CheckBufferFunction · 0.80
CheckDetachUpdatesDataFunction · 0.80

Calls

no outgoing calls

Tested by 2