static { IntBuffer offsets = memAllocInt(2); SIZEOF = offsets(memAddress(offsets)); X = offsets.get(0); Y = offsets.get(1); memFree(offsets); }