/** * Copies {@code n} {@code boolean}s from the memory pointed to by this * {@link BooleanPtr} to a new {@code boolean[]} instance. * * @param n the number of {@code boolean}s to copy. * @return the {@code boolean[]}. */ public boolean[] toBooleanArray(int n) { boolean[] result = new boolean[n]; get(result); return result; }
/** * Copies {@code dst.length} bytes from the memory pointed to by this * {@link BooleanPtr} to {@code dst}. * * @param dst the destination. */ public void get(boolean[] dst) { get(dst, 0, dst.length); }
public boolean isDirectoryAtPath(String path) { BooleanPtr ptr = new BooleanPtr(); fileExists(path, ptr); return ptr.get(); }
public boolean hasBooleanValue(String key) { BooleanPtr ptr = new BooleanPtr(); getAppBooleanValue(key, applicationID, ptr); return ptr.get(); } public long getLongValue(String key) {
/** * @since Available in iOS 2.0 and later. */ public boolean popBoolean() { BooleanPtr ptr = new BooleanPtr(); if (popBoolean(ptr)) { return ptr.get(); } return false; } /**
public boolean hasLongValue(String key) { BooleanPtr ptr = new BooleanPtr(); getAppIntegerValue(key, applicationID, ptr); return ptr.get(); } public void setValue(String key, CFType value) {
@Override public void invoke(NSString a, NSObject b, BooleanPtr c) { block.invoke(MPMediaEntityProperty.valueOf(a), b, c.get()); } });
/** * @since Available in iOS 2.0 and later. */ public boolean getBoolean(long index) { BooleanPtr ptr = new BooleanPtr(); if (getBoolean(index, ptr)) { return ptr.get(); } return false; } public boolean hasLong(long index) {
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public boolean isPlaying() throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = isPlaying0(ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public boolean isPropertyWritable(AUPropertyType type, AUScope scope, int element) throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = getPropertyInfo0(type, scope, element, null, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
public boolean booleanValue() { VoidPtr ptr = new VoidPtr(); if (getValue(CGPDFObjectType.Boolean, ptr)) { return ptr.as(BooleanPtr.class).get(); } return false; } public long longValue() {
/** * @throws OSStatusException * @since Available in iOS 2.1 and later. */ public boolean isPropertyWritable(ExtAudioFileProperty id) throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = getPropertyInfo0(id, null, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public boolean isRunning() throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = isRunning0(ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public boolean hasPreviousEvent() throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = hasPreviousEvent0(ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public boolean hasCurrentEvent() throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = hasCurrentEvent0(ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /*<methods>*/
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public boolean isPropertyWritable(AudioConverterProperty id) throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = getPropertyInfo0(id, null, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public boolean isPropertyWritable(AudioFileStreamProperty id) throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = getPropertyInfo0(id, null, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 4.0 and later. */ public boolean isDefaultStyleItalic() throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = getDefaultStyle0(null, null, ptr, null, null, null); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public static boolean isPropertyWritable(AudioServicesProperty id) throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = getPropertyInfo0(id, 0, null, null, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 7.0 and later. */ public boolean isNetworkFetchAllowed() throws OSStatusException { BooleanPtr ptr = new BooleanPtr(); OSStatus status = isNetworkFetchAllowed0(ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**