Beispiel #1
0
 @MarshalsPointer
 public static long toNative(CVBufferAttributes o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.data, flags);
 }
Beispiel #2
0
 @MarshalsPointer
 public static long toNative(CMMetadataKeySpace o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.value(), flags);
 }
Beispiel #3
0
 @MarshalsPointer
 public static long toNative(CGImagePropertyGIF o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(CMImageDescriptionFlavor o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(CFURLUbiquitousItemDownloadingStatus o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.value(), flags);
 }
Beispiel #6
0
 @MarshalsPointer
 public static CGImagePropertyGIF toObject(
     Class<CGImagePropertyGIF> cls, long handle, long flags) {
   CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CGImagePropertyGIF.valueOf(o);
 }
 @MarshalsPointer
 public static CFURLUbiquitousItemDownloadingStatus toObject(
     Class<CFURLUbiquitousItemDownloadingStatus> cls, long handle, long flags) {
   CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CFURLUbiquitousItemDownloadingStatus.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);
 }
Beispiel #9
0
 @MarshalsPointer
 public static CVBufferAttribute toObject(
     Class<CVBufferAttribute> cls, long handle, long flags) {
   CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CVBufferAttribute.valueOf(o);
 }
Beispiel #10
0
 @MarshalsPointer
 public static CVBufferAttributes toObject(
     Class<CVBufferAttributes> cls, long handle, long flags) {
   CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CVBufferAttributes(o);
 }
Beispiel #11
0
 @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);
 }
Beispiel #12
0
 @MarshalsPointer
 public static long toNative(List<CGImagePropertyGIF> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CGImagePropertyGIF o : l) {
     array.add(o.value());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static long toNative(List<CFURLUbiquitousItemDownloadingStatus> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CFURLUbiquitousItemDownloadingStatus o : l) {
     array.add(o.value());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static long toNative(List<CMImageDescriptionFlavor> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CMImageDescriptionFlavor o : l) {
     array.add(o.value());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
Beispiel #15
0
 @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);
 }
Beispiel #16
0
 @MarshalsPointer
 public static long toNative(List<CVBufferAttributes> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CVBufferAttributes i : l) {
     array.add(i.getDictionary());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
Beispiel #17
0
 @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<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;
 }
Beispiel #19
0
 @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;
 }