1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
//! Facilities for working with `v8::Array`s.

use raw::{Local, Isolate};

extern "C" {

    /// Mutates the `out` argument provided to refer to a newly created `v8::Array`.
    #[link_name = "Neon_Array_New"]
    pub fn new(out: &mut Local, isolate: *mut Isolate, length: u32);

    /// Gets the length of an `v8::Array`.
    #[link_name = "Neon_Array_Length"]
    pub fn len(array: Local) -> u32;

}