pub unsafe extern "C" fn napi_create_array_with_length(
env: napi_env,
length: usize,
result: *mut napi_value,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Creates an ArkTS array of the specified length.
§Arguments
-
env- Current running virtual machine context. -
length- The length of the Array. -
result- napi_value representing an ArkTS Array.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If the param env and(or) result is nullptr.
Available since API-level: 10