/** * Copies {@code dst.length} longs from the memory pointed to by this * {@link LongPtr} to {@code dst}. * * @param dst the destination. */ public void get(long[] dst) { get(dst, 0, dst.length); }
/** * Copies {@code n} longs from the memory pointed to by this {@link LongPtr} * to a new {@code long[]} instance. * * @param n the number of longs to copy. * @return the {@code long[]}. */ public long[] toLongArray(int n) { long[] result = new long[n]; get(result); return result; }
public long getPropertyAsLong(ExtAudioFileProperty id) throws OSStatusException { LongPtr ptr = getProperty(id, LongPtr.class); return ptr.get(); } public float getPropertyAsFloat(ExtAudioFileProperty id) throws OSStatusException {
public long getPropertyAsLong(AudioFileStreamProperty id) throws OSStatusException { LongPtr ptr = getProperty(id, LongPtr.class); return ptr.get(); } public float getPropertyAsFloat(AudioFileStreamProperty id) throws OSStatusException {
public long getPropertyAsLong(AudioFileProperty id) throws OSStatusException { LongPtr ptr = getProperty(id, LongPtr.class); return ptr.get(); } public float getPropertyAsFloat(AudioFileProperty id) throws OSStatusException {
@Deprecated public static long getPropertyAsLong(AudioSessionProperty id) throws OSStatusException { LongPtr ptr = getProperty(id, LongPtr.class); return ptr.get(); } @Deprecated
public long getPropertyAsLong(AUPropertyType type, AUScope scope) throws OSStatusException { LongPtr ptr = getProperty(type, LongPtr.class, scope); return ptr.get(); } public float getPropertyAsFloat(AUPropertyType type, AUScope scope) throws OSStatusException {
public long getPropertyAsLong(AudioQueueProperty id) throws OSStatusException { LongPtr ptr = getProperty(id, LongPtr.class); return ptr.get(); } public float getPropertyAsFloat(AudioQueueProperty id) throws OSStatusException {
public long getPropertyAsLong(AudioConverterProperty id) throws OSStatusException { LongPtr ptr = getProperty(id, LongPtr.class); return ptr.get(); } public float getPropertyAsFloat(AudioConverterProperty id) throws OSStatusException {
public long getPropertyAsLong(MusicTrackProperty id) throws OSStatusException { LongPtr ptr = getProperty(id, LongPtr.class); return ptr.get(); } public float getPropertyAsFloat(MusicTrackProperty id) throws OSStatusException {
/** * @since Available in iOS 2.0 and later. */ public long scanHexLong() { LongPtr ptr = new LongPtr(); if (!scanHexLongLong(ptr)) { return 0; } return ptr.get(); } /**
public long scanLong() { LongPtr ptr = new LongPtr(); if (!scanLongLong(ptr)) { return 0; } return ptr.get(); } /**
/** * @since Available in iOS 7.0 and later. */ public long scanUnsignedLong() { LongPtr ptr = new LongPtr(); if (!scanUnsignedLongLong(ptr)) { return 0; } return ptr.get(); } public float scanFloat() {
public long longValue() { VoidPtr ptr = new VoidPtr(); getValue(CFNumberType.SInt8Type, ptr); return ptr.as(LongPtr.class).get(); } public float floatValue() {
/** * @throws OSStatusException * @since Available in iOS 2.1 and later. */ public long tell() throws OSStatusException { LongPtr ptr = new LongPtr(); OSStatus status = tell0(ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public long seek(long packetOffset, AudioFileStreamMutableSeekFlags flags) throws OSStatusException { LongPtr ptr = new LongPtr(); OSStatus status = seek0(packetOffset, ptr, flags); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public long getHostTimeForBeats(double beats) throws OSStatusException { LongPtr ptr = new LongPtr(); OSStatus status = getHostTimeForBeats0(beats, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
public long longValue() { VoidPtr ptr = new VoidPtr(); if (getValue(CGPDFObjectType.Integer, ptr)) { return ptr.as(LongPtr.class).get(); } return 0; } public double doubleValue() {
public CTLineBoundsOptions getLineBoundsOptions() { LongPtr ptr = new LongPtr(); getValueForSpecifier(CTParagraphStyleSpecifier.LineBoundsOptions, LongPtr.sizeOf(), ptr.as(VoidPtr.class)); return new CTLineBoundsOptions(ptr.get()); } /*<methods>*/
/** * Copies {@code dst.length} longs from the memory pointed to by this * {@link LongPtr} to {@code dst}. * * @param dst the destination. */ public void get(long[] dst) { get(dst, 0, dst.length); }