@MarshalsPointer public static List<CVBufferAttributes> 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<CVBufferAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CVBufferAttributes(o.get(i, CFDictionary.class))); } return list; }
@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<CGImagePropertyGIF> 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<CGImagePropertyGIF> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CGImagePropertyGIF.valueOf(o.get(i, CFString.class))); } return list; }
@MarshalsPointer public static List<CFURLUbiquitousItemDownloadingStatus> 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<CFURLUbiquitousItemDownloadingStatus> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFURLUbiquitousItemDownloadingStatus.valueOf(o.get(i, CFString.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; }