/** * Returns a {@link IntBuffer} which reads and writes to the same memory * location pointed to by this {@link IntPtr}. * * @param n the maximum number of ints the {@link IntBuffer} can * read/write. This will be the {@link IntBuffer}'s * <code>capacity</code>. * @return the {@link IntBuffer}. */ public IntBuffer asIntBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 2).order(ByteOrder.nativeOrder()).asIntBuffer(); }
public static CFNumber valueOf(int value) { return create(null, CFNumberType.SInt32Type, new IntPtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(long value) {
public static CFNumber valueOf(boolean value) { return create(null, CFNumberType.SInt32Type, new IntPtr(value ? 1 : 0).as(VoidPtr.class)); } public static CFNumber valueOf(Number value) {
/** * Returns a {@link IntBuffer} which reads and writes to the same memory * location pointed to by this {@link IntPtr}. * * @param n the maximum number of ints the {@link IntBuffer} can * read/write. This will be the {@link IntBuffer}'s * <code>capacity</code>. * @return the {@link IntBuffer}. */ public IntBuffer asIntBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 2).order(ByteOrder.nativeOrder()).asIntBuffer(); }
/** * Returns a {@link IntBuffer} which reads and writes to the same memory * location pointed to by this {@link IntPtr}. * * @param n the maximum number of ints the {@link IntBuffer} can * read/write. This will be the {@link IntBuffer}'s * <code>capacity</code>. * @return the {@link IntBuffer}. */ public IntBuffer asIntBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 2).order(ByteOrder.nativeOrder()).asIntBuffer(); }
/** * Returns a {@link IntBuffer} which reads and writes to the same memory * location pointed to by this {@link IntPtr}. * * @param n the maximum number of ints the {@link IntBuffer} can * read/write. This will be the {@link IntBuffer}'s * <code>capacity</code>. * @return the {@link IntBuffer}. */ public IntBuffer asIntBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 2).order(ByteOrder.nativeOrder()).asIntBuffer(); }
/** * Returns a {@link IntBuffer} which reads and writes to the same memory * location pointed to by this {@link IntPtr}. * * @param n the maximum number of ints the {@link IntBuffer} can * read/write. This will be the {@link IntBuffer}'s * <code>capacity</code>. * @return the {@link IntBuffer}. */ public IntBuffer asIntBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 2).order(ByteOrder.nativeOrder()).asIntBuffer(); }
/** * Returns a {@link IntBuffer} which reads and writes to the same memory * location pointed to by this {@link IntPtr}. * * @param n the maximum number of ints the {@link IntBuffer} can * read/write. This will be the {@link IntBuffer}'s * <code>capacity</code>. * @return the {@link IntBuffer}. */ public IntBuffer asIntBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 2).order(ByteOrder.nativeOrder()).asIntBuffer(); }
public static CFNumber valueOf(boolean value) { return create(null, CFNumberType.SInt32Type, new IntPtr(value ? 1 : 0).as(VoidPtr.class)); } public static CFNumber valueOf(Number value) {
public static CFNumber valueOf(boolean value) { return create(null, CFNumberType.SInt32Type, new IntPtr(value ? 1 : 0).as(VoidPtr.class)); } public static CFNumber valueOf(Number value) {
public static CFNumber valueOf(int value) { return create(null, CFNumberType.SInt32Type, new IntPtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(long value) {
public static CFNumber valueOf(int value) { return create(null, CFNumberType.SInt32Type, new IntPtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(long value) {