napi_is_detached_arraybuffer
napi_status napi_is_detached_arraybuffer(napi_env env,
napi_value arraybuffer,
bool* result)
-
[in] env
:调用 API 的环境。¥
[in] env
: The environment that the API is invoked under. -
[in] arraybuffer
:要检查的 JavaScriptArrayBuffer
。¥
[in] arraybuffer
: The JavaScriptArrayBuffer
to be checked. -
[out] result
:arraybuffer
是否分离。¥
[out] result
: Whether thearraybuffer
is detached.
如果 API 成功,则返回 napi_ok
。
¥Returns napi_ok
if the API succeeded.
如果 ArrayBuffer
的内部数据是 null
,则认为 ArrayBuffer
已分离。
¥The ArrayBuffer
is considered detached if its internal data is null
.
此 API 表示调用 ArrayBuffer
IsDetachedBuffer
操作,如 ECMAScript 语言规范的 第 24.1.1.2 节 中所定义。
¥This API represents the invocation of the ArrayBuffer
IsDetachedBuffer
operation as defined in Section 24.1.1.2 of the ECMAScript Language
Specification.