/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public int getPropertySize(Struct<?> specifier) throws OSStatusException { IntPtr ptr = new IntPtr(); OSStatus status = getPropertyInfo0( this, specifier == null ? 0 : Struct.sizeOf(specifier), specifier == null ? null : specifier.as(VoidPtr.class), ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); }
public static int getDefaultFractionDigitsForCurrencyCode(String currencyCode) { IntPtr ptr = new IntPtr(); getDecimalInfoForCurrencyCode(currencyCode, ptr, new DoublePtr()); return ptr.get(); }