Pointer<Int16> callocInt16Y() { var ysPointer = ffi.calloc<Int16>(length); for (var n = 0; n < length; n++) { var yPointer = ysPointer + n; yPointer.value = this[n].y.toInt(); } return ysPointer; }