node_api_is_sharedarraybuffer
稳定性: 1 - 实验性的
¥Stability: 1 - Experimental
napi_status node_api_is_sharedarraybuffer(napi_env env, napi_value value, bool* result) -
[in] env:调用 API 的环境。¥
[in] env: The environment that the API is invoked under. -
[in] value:要检查的 JavaScript 值。¥
[in] value: The JavaScript value to check. -
[out] result:给定的napi_value是否代表SharedArrayBuffer。¥
[out] result: Whether the givennapi_valuerepresents aSharedArrayBuffer.
如果 API 成功,则返回 napi_ok。
¥Returns napi_ok if the API succeeded.
此 API 检查传入的对象是否为 SharedArrayBuffer。
¥This API checks if the Object passed in is a SharedArrayBuffer.