/** * Returns a {@link LongBuffer} which reads and writes to the same memory * location pointed to by this {@link LongPtr}. * * @param n the maximum number of longs the {@link LongBuffer} can * read/write. This will be the {@link LongBuffer}'s * <code>capacity</code>. * @return the {@link LongBuffer}. */ public LongBuffer asLongBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asLongBuffer(); }
public static CFNumber valueOf(long value) { return create(null, CFNumberType.SInt64Type, new LongPtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(float value) {
public void setLineBoundsOptions(CTLineBoundsOptions lineBoundsOptions) { LongPtr ptr = new LongPtr(lineBoundsOptions.value()); setValueForSpecifier(CTParagraphStyleSpecifier.LineBoundsOptions, ptr.as(VoidPtr.class)); }
public CTLineBoundsOptions getLineBoundsOptions() { LongPtr ptr = new LongPtr(); getValueForSpecifier(CTParagraphStyleSpecifier.LineBoundsOptions, LongPtr.sizeOf(), ptr.as(VoidPtr.class)); return new CTLineBoundsOptions(ptr.get()); } /*<methods>*/
/** * Returns a {@link LongBuffer} which reads and writes to the same memory * location pointed to by this {@link LongPtr}. * * @param n the maximum number of longs the {@link LongBuffer} can * read/write. This will be the {@link LongBuffer}'s * <code>capacity</code>. * @return the {@link LongBuffer}. */ public LongBuffer asLongBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asLongBuffer(); }
/** * Returns a {@link LongBuffer} which reads and writes to the same memory * location pointed to by this {@link LongPtr}. * * @param n the maximum number of longs the {@link LongBuffer} can * read/write. This will be the {@link LongBuffer}'s * <code>capacity</code>. * @return the {@link LongBuffer}. */ public LongBuffer asLongBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asLongBuffer(); }
/** * Returns a {@link LongBuffer} which reads and writes to the same memory * location pointed to by this {@link LongPtr}. * * @param n the maximum number of longs the {@link LongBuffer} can * read/write. This will be the {@link LongBuffer}'s * <code>capacity</code>. * @return the {@link LongBuffer}. */ public LongBuffer asLongBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asLongBuffer(); }
/** * Returns a {@link LongBuffer} which reads and writes to the same memory * location pointed to by this {@link LongPtr}. * * @param n the maximum number of longs the {@link LongBuffer} can * read/write. This will be the {@link LongBuffer}'s * <code>capacity</code>. * @return the {@link LongBuffer}. */ public LongBuffer asLongBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asLongBuffer(); }
/** * Returns a {@link LongBuffer} which reads and writes to the same memory * location pointed to by this {@link LongPtr}. * * @param n the maximum number of longs the {@link LongBuffer} can * read/write. This will be the {@link LongBuffer}'s * <code>capacity</code>. * @return the {@link LongBuffer}. */ public LongBuffer asLongBuffer(int n) { return as(BytePtr.class).asByteBuffer(n << 3).order(ByteOrder.nativeOrder()).asLongBuffer(); }
public static CFNumber valueOf(long value) { return create(null, CFNumberType.SInt64Type, new LongPtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(float value) {
public static CFNumber valueOf(long value) { return create(null, CFNumberType.SInt64Type, new LongPtr(value).as(VoidPtr.class)); } public static CFNumber valueOf(float value) {
public void setLineBoundsOptions(CTLineBoundsOptions lineBoundsOptions) { LongPtr ptr = new LongPtr(lineBoundsOptions.value()); setValueForSpecifier(CTParagraphStyleSpecifier.LineBoundsOptions, ptr.as(VoidPtr.class)); }
public void setLineBoundsOptions(CTLineBoundsOptions lineBoundsOptions) { LongPtr ptr = new LongPtr(lineBoundsOptions.value()); setValueForSpecifier(CTParagraphStyleSpecifier.LineBoundsOptions, ptr.as(VoidPtr.class)); }
public CTLineBoundsOptions getLineBoundsOptions() { LongPtr ptr = new LongPtr(); getValueForSpecifier(CTParagraphStyleSpecifier.LineBoundsOptions, LongPtr.sizeOf(), ptr.as(VoidPtr.class)); return new CTLineBoundsOptions(ptr.get()); } /*<methods>*/
public CTLineBoundsOptions getLineBoundsOptions() { LongPtr ptr = new LongPtr(); getValueForSpecifier(CTParagraphStyleSpecifier.LineBoundsOptions, LongPtr.sizeOf(), ptr.as(VoidPtr.class)); return new CTLineBoundsOptions(ptr.get()); } /*<methods>*/