/** * Returns a {@link DoubleBuffer} which reads and writes to the same memory * location pointed to by this {@link DoublePtr}. * * @param n the maximum number of doubles the {@link DoubleBuffer} can * read/write. This will be the {@link DoubleBuffer}'s * <code>capacity</code>. * @return the {@link DoubleBuffer}. */ public DoubleBuffer asDoubleBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asDoubleBuffer(); }
public static CFNumber valueOf(double value) { return create(null, CFNumberType.Float64Type, new DoublePtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(boolean value) {
/** * Returns a {@link DoubleBuffer} which reads and writes to the same memory * location pointed to by this {@link DoublePtr}. * * @param n the maximum number of doubles the {@link DoubleBuffer} can * read/write. This will be the {@link DoubleBuffer}'s * <code>capacity</code>. * @return the {@link DoubleBuffer}. */ public DoubleBuffer asDoubleBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asDoubleBuffer(); }
/** * Returns a {@link DoubleBuffer} which reads and writes to the same memory * location pointed to by this {@link DoublePtr}. * * @param n the maximum number of doubles the {@link DoubleBuffer} can * read/write. This will be the {@link DoubleBuffer}'s * <code>capacity</code>. * @return the {@link DoubleBuffer}. */ public DoubleBuffer asDoubleBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asDoubleBuffer(); }
/** * Returns a {@link DoubleBuffer} which reads and writes to the same memory * location pointed to by this {@link DoublePtr}. * * @param n the maximum number of doubles the {@link DoubleBuffer} can * read/write. This will be the {@link DoubleBuffer}'s * <code>capacity</code>. * @return the {@link DoubleBuffer}. */ public DoubleBuffer asDoubleBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asDoubleBuffer(); }
/** * Returns a {@link DoubleBuffer} which reads and writes to the same memory * location pointed to by this {@link DoublePtr}. * * @param n the maximum number of doubles the {@link DoubleBuffer} can * read/write. This will be the {@link DoubleBuffer}'s * <code>capacity</code>. * @return the {@link DoubleBuffer}. */ public DoubleBuffer asDoubleBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asDoubleBuffer(); }
/** * Returns a {@link DoubleBuffer} which reads and writes to the same memory * location pointed to by this {@link DoublePtr}. * * @param n the maximum number of doubles the {@link DoubleBuffer} can * read/write. This will be the {@link DoubleBuffer}'s * <code>capacity</code>. * @return the {@link DoubleBuffer}. */ public DoubleBuffer asDoubleBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asDoubleBuffer(); }
public static CFNumber valueOf(double value) { return create(null, CFNumberType.Float64Type, new DoublePtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(boolean value) {
public static CFNumber valueOf(double value) { return create(null, CFNumberType.Float64Type, new DoublePtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(boolean value) {