pub unsafe extern "C" fn napi_create_buffer(
env: napi_env,
length: usize,
data: *mut *mut c_void,
result: *mut napi_value,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Creates a ArkTS buffer of the specified size.
§Arguments
-
env- Current running virtual machine context. -
length- The size of the buffer to be created. -
data- Raw pointer of the ArkTS buffer. -
result- Result returned by the ArkTS function.
§Returns
- Returns the function execution status.
Available since API-level: 10