JSObjectPointer.array constructor

JSObjectPointer.array(
  1. List<JSObject> array
)

JSObjectRef array

Implementation

JSObjectPointer.array(List<JSObject> array)
    : this.count = array.length,
      this.pointer = malloc.call<Pointer>(array.length) {
  for (int i = 0; i < array.length; i++) {
    this.pointer[i] = array[i].pointer;
  }
}