@MarshalsPointer public static List<?> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } return o.toList(CTLine.class); }
@MarshalsPointer public static long toNative(List<CMFormatDescriptionExtension> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CMFormatDescriptionExtension i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); }
@MarshalsPointer public static long toNative(List<CMMetadataKeySpace> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CMMetadataKeySpace o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); }
@MarshalsPointer public static long toNative(List<CTFrameClippingPath> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CTFrameClippingPath i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); }
@MarshalsPointer public static long toNative(List<CVImageBufferAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVImageBufferAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); }
@MarshalsPointer public static long toNative(List<CFStreamSocketSecurityLevel> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CFStreamSocketSecurityLevel o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); }
@MarshalsPointer public static long toNative(List<CGImageDestinationCopySourceOptions> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CGImageDestinationCopySourceOptions i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); }
@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<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<CFStreamSocketSecurityLevel> toObject( Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<CFStreamSocketSecurityLevel> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFStreamSocketSecurityLevel.valueOf(o.get(i, CFString.class))); } return list; }
@MarshalsPointer public static long toNative(List<? extends CFType> l, long flags) { if (l == null) { return 0L; } CFArray o = null; if (l instanceof CFArray) { o = (CFArray) l; } else { o = CFArray.create((List<? extends CFType>) l); } return CFType.Marshaler.toNative(o, flags); }