/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.getDouble</code>. But this method performs a * bounds check to ensure that the indirection does not cause memory * outside the <code>malloc</code>ed space to be accessed. * * @see Pointer#getDouble(long) */ @Override public double getDouble(long offset) { boundsCheck(offset, 8); return super.getDouble(offset); }
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); case EvtVarTypeBinary: assert (!isArray());
public double getValue() { return getPointer().getDouble(0); }
result = Float.valueOf(getFloat(offset)); } else if (type == double.class || type == Double.class) { result = Double.valueOf(getDouble(offset)); } else if (Pointer.class.isAssignableFrom(type)) { Pointer p = getPointer(offset);
public double getDouble(long offset) { return ptr.getDouble(offset); } public Pointer getPointer(long offset) {
/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.getDouble</code>. But this method performs a * bounds check to ensure that the indirection does not cause memory * outside the <code>malloc</code>ed space to be accessed. * * @see Pointer#getDouble(long) */ @Override public double getDouble(long offset) { boundsCheck(offset, 8); return super.getDouble(offset); }
/** * Indirect the native pointer to <code>malloc</code> space, a la * <code>Pointer.getDouble</code>. But this method performs a * bounds check to ensure that the indirection does not cause memory * outside the <code>malloc</code>ed space to be accessed. * * @see Pointer#getDouble(long) */ public double getDouble(long offset) { boundsCheck(offset, 8); return super.getDouble(offset); }
public double getValue() { return getPointer().getDouble(0); }
public double getValue() { return getPointer().getDouble(0); }
private static class MemberOrder { public int first; public int middle; public int last; }
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 = Float.valueOf(getFloat(offset)); } else if (type == double.class || type == Double.class) { result = Double.valueOf(getDouble(offset)); } else if (Pointer.class.isAssignableFrom(type)) { Pointer p = getPointer(offset);