コード例 #1
0
ファイル: CFBundle.java プロジェクト: wynney/robovm
 @MarshalsPointer
 public static List<?> toObject(Class<? extends CFType> cls, long handle, long flags) {
   CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   return o.toList(CFBundle.class);
 }
コード例 #2
0
ファイル: CFHTTPVersion.java プロジェクト: pacificIT/robovm
 @MarshalsPointer
 public static CFHTTPVersion toObject(Class<CFHTTPVersion> cls, long handle, long flags) {
   CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CFHTTPVersion.valueOf(o);
 }
コード例 #3
0
 @MarshalsPointer
 public static CMFormatDescriptionExtension toObject(
     Class<CMFormatDescriptionExtension> cls, long handle, long flags) {
   CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CMFormatDescriptionExtension(o);
 }
コード例 #4
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);
 }
コード例 #5
0
ファイル: CTFrameClippingPath.java プロジェクト: kxlcn/robovm
 @MarshalsPointer
 public static CTFrameClippingPath toObject(
     Class<CTFrameClippingPath> cls, long handle, long flags) {
   CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CTFrameClippingPath(o);
 }
コード例 #6
0
 @MarshalsPointer
 public static CVImageBufferAttributes toObject(
     Class<CVImageBufferAttributes> cls, long handle, long flags) {
   CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CVImageBufferAttributes(o);
 }
コード例 #7
0
 @MarshalsPointer
 public static CFStreamSocketSecurityLevel toObject(
     Class<CFStreamSocketSecurityLevel> cls, long handle, long flags) {
   CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CFStreamSocketSecurityLevel.valueOf(o);
 }
コード例 #8
0
 @MarshalsPointer
 public static CGImageDestinationCopySourceOptions toObject(
     Class<CGImageDestinationCopySourceOptions> cls, long handle, long flags) {
   CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CGImageDestinationCopySourceOptions(o);
 }
コード例 #9
0
ファイル: CFURLFileProperty.java プロジェクト: wynney/robovm
 @MarshalsPointer
 public static CFURLFileProperty toObject(
     Class<CFURLFileProperty> cls, long handle, long flags) {
   CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CFURLFileProperty.valueOf(o);
 }
コード例 #10
0
 @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);
 }
コード例 #11
0
 @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;
 }
コード例 #12
0
 @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;
 }
コード例 #13
0
 @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;
 }
コード例 #14
0
 @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;
 }
コード例 #15
0
ファイル: ABSource.java プロジェクト: pacificIT/robovm
 @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;
 }