for (int i : dltBufP.getIntArray(0, rc)) { list.add(DataLinkType.getInstance(i));
if(!Magnification.INSTANCE.MagSetImageScalingCallback(hwndMag, new MagImageScalingCallback() { public boolean MagImageScalingCallback(HWND hwnd, Pointer srcdata, MAGIMAGEHEADER.ByValue srcheader, Pointer destdata, MAGIMAGEHEADER.ByValue destheader, RectByValue source, RectByValue clipped, HRGN dirty) { image.setRGB(0, 0, srcheader.width, srcheader.height, srcdata.getIntArray(0, srcheader.width * srcheader.height ), 0, srcheader.width); return true; } })){ System.err.println("Error occured while setting callback"); System.exit(0); }
public DISPID[] getRgdispidNamedArgs() { DISPID[] namedArgs = null; int count = cNamedArgs.intValue(); if(rgdispidNamedArgs != null && count > 0) { int[] rawData = rgdispidNamedArgs.getIntArray(0, count); namedArgs = new DISPID[count]; for(int i = 0; i < count; i++) { namedArgs[i] = new DISPID(rawData[i]); } } else { namedArgs = new DISPID[0]; } return namedArgs; }
public int[] stereocenterPyramid () { dispatcher.setSessionID(); Pointer ptr = Indigo.checkResultPointer(this, _lib.indigoStereocenterPyramid(self)); return ptr.getIntArray(0, 4); }
public int[] symmetryClasses () { IntByReference count = new IntByReference(); dispatcher.setSessionID(); Pointer p = Indigo.checkResultPointer(this, _lib.indigoSymmetryClasses(self, count)); return p.getIntArray(0, count.getValue()); }
pos = posPointer.getValue().getIntArray(0, wordSize); cut = cutPointer.getValue().getIntArray(0, wordSize); } else { rep = new String[wordSize];
for (int i : dltBufP.getIntArray(0, rc)) { list.add(DataLinkType.getInstance(i));
for (int i = 0; i < len; i++) { int slen = vlen[i].len; int[] ba = vlen[i].p.getIntArray(0, slen); data[i] = Array.factory(DataType.INT, new int[]{slen}, ba);
width = component.w; height = component.h; pixels = component.data.getPointer().getIntArray(0, component.w * component.h); executor.submit(() -> { try { this.pendingWrites.add(otherBandFile); RasterUtils.write(components[index].w, components[index].h, components[index].data.getPointer().getIntArray(0, components[index].w * components[index].h), this.dataType, otherBandFile, this.writeCompletedCallback); } catch (Exception ex) {
for (int i = 0; i < len; i++) { int[] ba = vlen[i].p.getIntArray(0, vlen[i].len); for (int j = 0; j < ba.length; j++) {
int[] ba = vlen[i].p.getIntArray(0, vlen[i].len); for (int aBa : ba) {
int[] ba = vlen[i].p.getIntArray(0, vlen[i].len); for (int aBa : ba) {
case ENUM4: case INT: /*int[]*/ data = p.getIntArray(0, n); break; case LONG: /*long[]*/
case ENUM4: case INT: /*int[]*/ data = p.getIntArray(0, n); break; case LONG: /*long[]*/
int slen = vlen[i].len; int[] ba = vlen[i].p.getIntArray(0, slen); data[i] = Array.factory(DataType.INT, new int[]{slen}, ba);
int slen = vlen[i].len; int[] ba = vlen[i].p.getIntArray(0, slen); data[i] = Array.factory(ctype.dt, new int[]{slen}, ba);
case VT_INT: case VT_ERROR: sourceArray = dataPointer.getIntArray(0, elementCount); break; case VT_R4:
private static X11.Window getContentWindow(Window w, X11.Display dpy, X11.Window win, Point offset) { if ((w instanceof Frame && !((Frame)w).isUndecorated()) || (w instanceof Dialog && !((Dialog)w).isUndecorated())) { X11 x11 = X11.INSTANCE; X11.WindowByReference rootp = new X11.WindowByReference(); X11.WindowByReference parentp = new X11.WindowByReference(); PointerByReference childrenp = new PointerByReference(); IntByReference countp = new IntByReference(); x11.XQueryTree(dpy, win, rootp, parentp, childrenp, countp); Pointer p = childrenp.getValue(); int[] ids = p.getIntArray(0, countp.getValue()); for (int id : ids) { // TODO: more verification of correct window? X11.Window child = new X11.Window(id); X11.XWindowAttributes xwa = new X11.XWindowAttributes(); x11.XGetWindowAttributes(dpy, child, xwa); offset.x = -xwa.x; offset.y = -xwa.y; win = child; break; } if (p != null) { x11.XFree(p); } } return win; }
private static X11.Window getContentWindow(Window w, X11.Display dpy, X11.Window win, Point offset) { if ((w instanceof Frame && !((Frame)w).isUndecorated()) || (w instanceof Dialog && !((Dialog)w).isUndecorated())) { X11 x11 = X11.INSTANCE; X11.WindowByReference rootp = new X11.WindowByReference(); X11.WindowByReference parentp = new X11.WindowByReference(); PointerByReference childrenp = new PointerByReference(); IntByReference countp = new IntByReference(); x11.XQueryTree(dpy, win, rootp, parentp, childrenp, countp); Pointer p = childrenp.getValue(); int[] ids = p.getIntArray(0, countp.getValue()); for (int id : ids) { // TODO: more verification of correct window? X11.Window child = new X11.Window(id); X11.XWindowAttributes xwa = new X11.XWindowAttributes(); x11.XGetWindowAttributes(dpy, child, xwa); offset.x = -xwa.x; offset.y = -xwa.y; win = child; break; } if (p != null) { x11.XFree(p); } } return win; }
case EvtVarTypeBoolean: if (isArray()) { int[] rawValue = field1.getPointer().getPointer(0).getIntArray(0, Count); WinDef.BOOL[] result = new WinDef.BOOL[rawValue.length]; for (int i = 0; i < result.length; i++) { case EvtVarTypeInt32: case EvtVarTypeUInt32: return isArray() ? field1.getPointer().getPointer(0).getIntArray(0, Count) : field1.getPointer().getInt(0); case EvtVarTypeHexInt64: case EvtVarTypeInt64: