napi_is_typedarray

Function napi_is_typedarray 

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

Checks if the ArkTS value is an ArkTS TypedArray.

§Arguments

  • env - Current running virtual machine context.

  • value - The ArkTS value to check.

  • result - Whether the given ArkTS value is an ArkTS TypedArray.

§Returns

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

[napi_invalid_arg] If the param env, value and(or) result is nullptr.

Available since API-level: 10