JSValuePointer.array constructor

JSValuePointer.array(
  1. List<JSValue> array
)

JSValueRef array

Implementation

JSValuePointer.array(List<JSValue> 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;
  }
}