callocInt16X method

Pointer<Int16> callocInt16X()

Implementation

Pointer<Int16> callocInt16X() {
  var xsPointer = ffi.calloc<Int16>(length);
  for (var n = 0; n < length; n++) {
    var xPointer = xsPointer + n;
    xPointer.value = this[n].x.toInt();
  }
  return xsPointer;
}