callocInt16X method

Pointer<Int16> callocInt16X()

Implementation

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