@MarshalsPointer public static List<?> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } return o.toList(CFBundle.class); }
@MarshalsPointer public static CFHTTPVersion toObject(Class<CFHTTPVersion> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CFHTTPVersion.valueOf(o); }
@MarshalsPointer public static CMFormatDescriptionExtension toObject( Class<CMFormatDescriptionExtension> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CMFormatDescriptionExtension(o); }
@MarshalsPointer public static CMMetadataKeySpace toObject( Class<CMMetadataKeySpace> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CMMetadataKeySpace.valueOf(o); }
@MarshalsPointer public static CTFrameClippingPath toObject( Class<CTFrameClippingPath> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CTFrameClippingPath(o); }
@MarshalsPointer public static CVImageBufferAttributes toObject( Class<CVImageBufferAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVImageBufferAttributes(o); }
@MarshalsPointer public static CFStreamSocketSecurityLevel toObject( Class<CFStreamSocketSecurityLevel> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CFStreamSocketSecurityLevel.valueOf(o); }
@MarshalsPointer public static CGImageDestinationCopySourceOptions toObject( Class<CGImageDestinationCopySourceOptions> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CGImageDestinationCopySourceOptions(o); }
@MarshalsPointer public static CFURLFileProperty toObject( Class<CFURLFileProperty> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CFURLFileProperty.valueOf(o); }
@MarshalsPointer public static CMImageDescriptionFlavor toObject( Class<CMImageDescriptionFlavor> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CMImageDescriptionFlavor.valueOf(o); }
@MarshalsPointer public static List<CMFormatDescriptionExtension> toObject( Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<CMFormatDescriptionExtension> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CMFormatDescriptionExtension(o.get(i, CFDictionary.class))); } return list; }
@MarshalsPointer public static List<CFStreamSocketSOCKSVersion> toObject( Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<CFStreamSocketSOCKSVersion> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFStreamSocketSOCKSVersion.valueOf(o.get(i, CFString.class))); } return list; }
@MarshalsPointer public static List<CMMetadataKeySpace> toObject( Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CMMetadataKeySpace> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CMMetadataKeySpace.valueOf(o.get(i, CFString.class))); } return list; }
@MarshalsPointer public static List<CVImageBufferAttributes> toObject( Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<CVImageBufferAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CVImageBufferAttributes(o.get(i, CFDictionary.class))); } return list; }
@MarshalsPointer public static List<ABSource> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<ABSource> list = new ArrayList<>(); for (long i = 0, n = o.size(); i < n; i++) { ABRecord record = o.get(i, ABRecord.class); list.add( (ABSource) NativeObject.Marshaler.toObject(ABSource.class, record.getHandle(), flags)); } return list; }