예제 #1
0
        public (NSData Data, NSError Error) AsData(CFPropertyListFormat format = CFPropertyListFormat.BinaryFormat1)
        {
            IntPtr error;
            var    x = CFPropertyListCreateData(IntPtr.Zero, handle, (nint)(long)format, 0, out error);

            if (x == IntPtr.Zero)
            {
                return(null, new NSError(error));
            }
            return(Runtime.GetNSObject <NSData> (x, owns: true), null);
        }
예제 #2
0
 private static extern bool CFPropertyListIsValid(IntPtr theData, CFPropertyListFormat format);
예제 #3
0
 private static extern bool CFPropertyListIsValid(IntPtr theData, CFPropertyListFormat format);
예제 #4
0
 internal static extern int CFPropertyListWriteToStream(IntPtr propertyList, IntPtr stream, CFPropertyListFormat format, ref IntPtr errorString);
예제 #5
0
 public bool IsValid(CFPropertyListFormat format)
 {
     return(CFPropertyListIsValid(handle, (nint)(long)format));
 }
예제 #6
0
 internal static extern int CFPropertyListWriteToStream(IntPtr propertyList, IntPtr stream, CFPropertyListFormat format, ref IntPtr errorString);