napi_is_detached_arraybuffer

Function napi_is_detached_arraybuffer 

Source
pub unsafe extern "C" fn napi_is_detached_arraybuffer(
    env: napi_env,
    value: napi_value,
    result: *mut bool,
) -> napi_status
Available on crate feature napi only.
Expand description

Checks whether the given ‘ArrayBuffer’ has been detached.

§Arguments

  • env - Current running virtual machine context.

  • value - ArkTS ArrayBuffer object.

  • result - Boolean value that is set to true if the ‘value’ has been detached, false otherwise.

§Returns

  • Returns the function execution status. [napi_ok] If the function executed successfully.

[napi_invalid_arg] If env, value or result is nullptr.

Available since API-level: 10