napi_create_sendable_arraybuffer

Function napi_create_sendable_arraybuffer 

Source
pub unsafe extern "C" fn napi_create_sendable_arraybuffer(
    env: napi_env,
    byte_length: usize,
    data: *mut *mut c_void,
    result: *mut napi_value,
) -> napi_status
Available on crate features napi and api-12 only.
Expand description

Create a sendable arraybuffer.

§Arguments

  • env - The environment that the API is invoked under.

  • byte_length - The length in bytes of the sendable arraybuffer to create.

  • data - Pointer to the underlying byte buffer of the sendable arraybuffer.

  • result - A napi_value representing a sendable arraybuffer.

§Returns

  • Return the function execution status.

Available since API-level: 12