neon::types

Type Alias JsBigInt64Array

Source
pub type JsBigInt64Array = JsTypedArray<i64>;
Expand description

The type of JavaScript BigInt64Array objects.

§Example

use neon::types::buffer::TypedArray;

fn double(mut cx: FunctionContext) -> JsResult<JsUndefined> {
    let mut array: Handle<JsBigInt64Array> = cx.argument(0)?;

    for elem in array.as_mut_slice(&mut cx).iter_mut() {
        *elem *= 2;
    }

    Ok(cx.undefined())
}

Aliased Type§

struct JsBigInt64Array(/* private fields */);