calloc method

Pointer<SdlFPoint> calloc()

Implementation

Pointer<SdlFPoint> calloc() {
  var pointsPointer = ffi.calloc<SdlFPoint>(length);
  for (var n = 0; n < length; n++) {
    var pointPointer = pointsPointer + n;
    pointPointer.ref.x = this[n].x;
    pointPointer.ref.y = this[n].y;
  }
  return pointsPointer;
}