/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.getFloat</code>. But this method performs a bounds * checks to ensure that the indirection does not cause memory outside the * <code>malloc</code>ed space to be accessed. * * @see Pointer#getFloat(long) */ @Override public float getFloat(long offset) { boundsCheck(offset, 4); return super.getFloat(offset); }
return isArray() ? field1.getPointer().getPointer(0).getLongArray(0, Count) : field1.getPointer().getLong(0); case EvtVarTypeSingle: return isArray() ? field1.getPointer().getPointer(0).getFloatArray(0, Count) : field1.getPointer().getFloat(0); case EvtVarTypeDouble: return isArray() ? field1.getPointer().getPointer(0).getDoubleArray(0, Count) : field1.getPointer().getDouble(0);
public float getValue() { return getPointer().getFloat(0); }
result = Long.valueOf(getLong(offset)); } else if (type == float.class || type == Float.class) { result = Float.valueOf(getFloat(offset)); } else if (type == double.class || type == Double.class) { result = Double.valueOf(getDouble(offset));
public float getFloat(long offset) { return ptr.getFloat(offset); }
/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.getFloat</code>. But this method performs a bounds * checks to ensure that the indirection does not cause memory outside the * <code>malloc</code>ed space to be accessed. * * @see Pointer#getFloat(long) */ public float getFloat(long offset) { boundsCheck(offset, 4); return super.getFloat(offset); }
/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.getFloat</code>. But this method performs a bounds * checks to ensure that the indirection does not cause memory outside the * <code>malloc</code>ed space to be accessed. * * @see Pointer#getFloat(long) */ @Override public float getFloat(long offset) { boundsCheck(offset, 4); return super.getFloat(offset); }
public float getValue() { return getPointer().getFloat(0); }
public float getValue() { return getPointer().getFloat(0); }
private static class MemberOrder { public int first; public int middle; public int last; }
public float getBasicPkaValue(IndigoObject atom, int level, int min_level) { dispatcher.setSessionID(); Pointer ptr = Indigo.checkResultPointer(this, _lib.indigoGetBasicPkaValue(self, atom.self, level, min_level)); return ptr.getFloat(0); }
public float getAcidPkaValue(IndigoObject atom, int level, int min_level) { dispatcher.setSessionID(); Pointer ptr = Indigo.checkResultPointer(this, _lib.indigoGetAcidPkaValue(self, atom.self, level, min_level)); return ptr.getFloat(0); }
public CGFloat get() { switch (CGFloat.SIZE) { case 4: return new CGFloat(getPointer().getFloat(0)); case 8: return new CGFloat(getPointer().getDouble(0)); default: throw new UnsupportedOperationException("Unhandled CGFloat size : " + CGFloat.SIZE); } }
result = Long.valueOf(getLong(offset)); } else if (type == float.class || type == Float.class) { result = Float.valueOf(getFloat(offset)); } else if (type == double.class || type == Double.class) { result = Double.valueOf(getDouble(offset));