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

Method Length

napi-inl.h:2119–2124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2117inline Array::Array(napi_env env, napi_value value) : Object(env, value) {}
2118
2119inline uint32_t Array::Length() const {
2120 uint32_t result;
2121 napi_status status = napi_get_array_length(_env, _value, &result);
2122 NAPI_THROW_IF_FAILED(_env, status, 0);
2123 return result;
2124}
2125
2126#ifdef NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER
2127////////////////////////////////////////////////////////////////////////////////

Callers 15

const_iteratorMethod · 0.80
iteratorMethod · 0.80
OnCalledAsFunctionMethod · 0.80
RunWithContextFunction · 0.80
TestMethod · 0.80
IteratorMethod · 0.80
CreateBufferFunction · 0.80
CreateExternalBufferFunction · 0.80

Calls

no outgoing calls

Tested by 8

TestMethod · 0.64
TestMethod · 0.64
TestIsSharedArrayBufferFunction · 0.64
TestCallFunction · 0.64
TestCallFunction · 0.64