Esempio n. 1
0
 @MarshalsPointer
 public static long toNative(List<CIContextOptions> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSDictionary> array = new NSMutableArray<>();
   for (CIContextOptions i : l) {
     array.add(i.getDictionary());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
Esempio n. 2
0
 @MarshalsPointer
 public static List<CIContextOptions> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSDictionary> o =
       (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<CIContextOptions> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new CIContextOptions(o.get(i)));
   }
   return list;
 }