/** * Copies {@code n} bytes from the memory pointed to by this {@link BytePtr} * to a new {@code byte[]} instance. * * @param n the number of bytes to copy. * @return the {@code byte[]}. */ public byte[] toByteArray(int n) { byte[] result = new byte[n]; get(result); return result; }
/** * Copies {@code dst.length} bytes from the memory pointed to by this * {@link BytePtr} to {@code dst}. * * @param dst the destination. */ public void get(byte[] dst) { get(dst, 0, dst.length); }
public byte byteValue() { VoidPtr ptr = new VoidPtr(); getValue(CFNumberType.SInt8Type, ptr); return ptr.as(BytePtr.class).get(); } public short shortValue() {
/** * @throws OSStatusException * @since Available in iOS 4.0 and later. */ public CMTextJustification getVerticalJustification() throws OSStatusException { BytePtr ptr = new BytePtr(); OSStatus status = getJustification0(null, ptr); OSStatusException.throwIfNecessary(status); return CMTextJustification.valueOf(ptr.get()); } /**
/** * @throws OSStatusException * @since Available in iOS 4.0 and later. */ public CMTextJustification getHorizontalJustification() throws OSStatusException { BytePtr ptr = new BytePtr(); OSStatus status = getJustification0(ptr, null); OSStatusException.throwIfNecessary(status); return CMTextJustification.valueOf(ptr.get()); } /**
public CTLineBreakMode getLineBreakMode() { BytePtr ptr = new BytePtr(); getValueForSpecifier(CTParagraphStyleSpecifier.LineBreakMode, BytePtr.sizeOf(), ptr.as(VoidPtr.class)); return CTLineBreakMode.valueOf(ptr.get()); } public CTWritingDirection getBaseWritingDirection() {
public CTWritingDirection getBaseWritingDirection() { BytePtr ptr = new BytePtr(); getValueForSpecifier(CTParagraphStyleSpecifier.BaseWritingDirection, BytePtr.sizeOf(), ptr.as(VoidPtr.class)); return CTWritingDirection.valueOf(ptr.get()); } public double getFirstLineHeadIndent() {
public CTTextAlignment getAlignment() { BytePtr ptr = new BytePtr(); getValueForSpecifier(CTParagraphStyleSpecifier.Alignment, BytePtr.sizeOf(), ptr.as(VoidPtr.class)); return CTTextAlignment.valueOf(ptr.get()); } public CTLineBreakMode getLineBreakMode() {
/** * Copies {@code n} bytes from the memory pointed to by this {@link BytePtr} * to a new {@code byte[]} instance. * * @param n the number of bytes to copy. * @return the {@code byte[]}. */ public byte[] toByteArray(int n) { byte[] result = new byte[n]; get(result); return result; }
/** * Copies {@code dst.length} bytes from the memory pointed to by this * {@link BytePtr} to {@code dst}. * * @param dst the destination. */ public void get(byte[] dst) { get(dst, 0, dst.length); }
/** * Copies {@code dst.length} bytes from the memory pointed to by this * {@link BytePtr} to {@code dst}. * * @param dst the destination. */ public void get(byte[] dst) { get(dst, 0, dst.length); }
/** * Copies {@code dst.length} bytes from the memory pointed to by this * {@link BytePtr} to {@code dst}. * * @param dst the destination. */ public void get(byte[] dst) { get(dst, 0, dst.length); }
/** * Copies {@code n} bytes from the memory pointed to by this {@link BytePtr} * to a new {@code byte[]} instance. * * @param n the number of bytes to copy. * @return the {@code byte[]}. */ public byte[] toByteArray(int n) { byte[] result = new byte[n]; get(result); return result; }
/** * Copies {@code n} bytes from the memory pointed to by this {@link BytePtr} * to a new {@code byte[]} instance. * * @param n the number of bytes to copy. * @return the {@code byte[]}. */ public byte[] toByteArray(int n) { byte[] result = new byte[n]; get(result); return result; }
/** * @throws OSStatusException * @since Available in iOS 4.0 and later. */ public CMTextJustification getVerticalJustification() throws OSStatusException { BytePtr ptr = new BytePtr(); OSStatus status = getJustification0(null, ptr); OSStatusException.throwIfNecessary(status); return CMTextJustification.valueOf(ptr.get()); } /**
/** * @throws OSStatusException * @since Available in iOS 4.0 and later. */ public CMTextJustification getHorizontalJustification() throws OSStatusException { BytePtr ptr = new BytePtr(); OSStatus status = getJustification0(ptr, null); OSStatusException.throwIfNecessary(status); return CMTextJustification.valueOf(ptr.get()); } /**
/** * @throws OSStatusException * @since Available in iOS 4.0 and later. */ public CMTextJustification getVerticalJustification() throws OSStatusException { BytePtr ptr = new BytePtr(); OSStatus status = getJustification0(null, ptr); OSStatusException.throwIfNecessary(status); return CMTextJustification.valueOf(ptr.get()); } /**
public CTWritingDirection getBaseWritingDirection() { BytePtr ptr = new BytePtr(); getValueForSpecifier(CTParagraphStyleSpecifier.BaseWritingDirection, BytePtr.sizeOf(), ptr.as(VoidPtr.class)); return CTWritingDirection.valueOf(ptr.get()); } public double getFirstLineHeadIndent() {
public CTTextAlignment getAlignment() { BytePtr ptr = new BytePtr(); getValueForSpecifier(CTParagraphStyleSpecifier.Alignment, BytePtr.sizeOf(), ptr.as(VoidPtr.class)); return CTTextAlignment.valueOf(ptr.get()); } public CTLineBreakMode getLineBreakMode() {
public CTWritingDirection getBaseWritingDirection() { BytePtr ptr = new BytePtr(); getValueForSpecifier(CTParagraphStyleSpecifier.BaseWritingDirection, BytePtr.sizeOf(), ptr.as(VoidPtr.class)); return CTWritingDirection.valueOf(ptr.get()); } public double getFirstLineHeadIndent() {