pub unsafe extern "C" fn napi_is_buffer(
env: napi_env,
value: napi_value,
result: *mut bool,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Checks whether the given ArkTS value is a ‘ArrayBuffer’ object.
§Arguments
-
env- Current running virtual machine context. -
value- ArkTS ArrayBuffer object. -
result- Boolean value that is set to true if the ‘value’ is a ‘ArrayBuffer’ object, 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