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