Define a fixed-size array type.
Weakly interned by element type and count: live types keep their identity, including when retained by instances, signatures or containing types. The cache does not keep unused types alive.
Python equivalent: c_int * 5
c_int * 5
Type of each element
Number of elements
const IntArray5 = array(c_int32, 5);const arr = IntArray5.create([1, 2, 3, 4, 5]);console.log(arr[0]); // 1 Copy
const IntArray5 = array(c_int32, 5);const arr = IntArray5.create([1, 2, 3, 4, 5]);console.log(arr[0]); // 1
Define a fixed-size array type.
Weakly interned by element type and count: live types keep their identity, including when retained by instances, signatures or containing types. The cache does not keep unused types alive.
Python equivalent:
c_int * 5