Example #1
0
 @MarshalsPointer
 public static long toNative(List<CMVideoCodecType> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSMutableArray<NSString> array = new NSMutableArray<>();
   for (CMVideoCodecType i : l) {
     array.add(new NSString(i.asFourCharCode()));
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
Example #2
0
 @MarshalsPointer
 public static long toNative(List<SCNMatrix4> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSMutableArray<NSValue> array = new NSMutableArray<>();
   for (SCNMatrix4 i : l) {
     array.add(NSValue.valueOf(i));
   }
   return NSObject.Marshaler.toNative(array, flags);
 }