/** * Returns a {@link CharBuffer} which reads and writes to the same memory * location pointed to by this {@link CharPtr}. * * @param n the maximum number of chars the {@link CharBuffer} can * read/write. This will be the {@link CharBuffer}'s * <code>capacity</code>. * @return the {@link ShortBuffer}. */ public CharBuffer asCharBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 1).order(ByteOrder.nativeOrder()).asCharBuffer(); }
public static CFNumber valueOf(char value) { return create(null, CFNumberType.SInt16Type, new CharPtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(int value) {
/** * Returns a {@link CharBuffer} which reads and writes to the same memory * location pointed to by this {@link CharPtr}. * * @param n the maximum number of chars the {@link CharBuffer} can * read/write. This will be the {@link CharBuffer}'s * <code>capacity</code>. * @return the {@link ShortBuffer}. */ public CharBuffer asCharBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 1).order(ByteOrder.nativeOrder()).asCharBuffer(); }
/** * Returns a {@link CharBuffer} which reads and writes to the same memory * location pointed to by this {@link CharPtr}. * * @param n the maximum number of chars the {@link CharBuffer} can * read/write. This will be the {@link CharBuffer}'s * <code>capacity</code>. * @return the {@link ShortBuffer}. */ public CharBuffer asCharBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 1).order(ByteOrder.nativeOrder()).asCharBuffer(); }
/** * Returns a {@link CharBuffer} which reads and writes to the same memory * location pointed to by this {@link CharPtr}. * * @param n the maximum number of chars the {@link CharBuffer} can * read/write. This will be the {@link CharBuffer}'s * <code>capacity</code>. * @return the {@link ShortBuffer}. */ public CharBuffer asCharBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 1).order(ByteOrder.nativeOrder()).asCharBuffer(); }
/** * Returns a {@link CharBuffer} which reads and writes to the same memory * location pointed to by this {@link CharPtr}. * * @param n the maximum number of chars the {@link CharBuffer} can * read/write. This will be the {@link CharBuffer}'s * <code>capacity</code>. * @return the {@link ShortBuffer}. */ public CharBuffer asCharBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 1).order(ByteOrder.nativeOrder()).asCharBuffer(); }
/** * Returns a {@link CharBuffer} which reads and writes to the same memory * location pointed to by this {@link CharPtr}. * * @param n the maximum number of chars the {@link CharBuffer} can * read/write. This will be the {@link CharBuffer}'s * <code>capacity</code>. * @return the {@link ShortBuffer}. */ public CharBuffer asCharBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 1).order(ByteOrder.nativeOrder()).asCharBuffer(); }
public static CFNumber valueOf(char value) { return create(null, CFNumberType.SInt16Type, new CharPtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(int value) {
public static CFNumber valueOf(char value) { return create(null, CFNumberType.SInt16Type, new CharPtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(int value) {