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); }
private static extern bool CFPropertyListIsValid(IntPtr theData, CFPropertyListFormat format);
private static extern bool CFPropertyListIsValid(IntPtr theData, CFPropertyListFormat format);
internal static extern int CFPropertyListWriteToStream(IntPtr propertyList, IntPtr stream, CFPropertyListFormat format, ref IntPtr errorString);
public bool IsValid(CFPropertyListFormat format) { return(CFPropertyListIsValid(handle, (nint)(long)format)); }
internal static extern int CFPropertyListWriteToStream(IntPtr propertyList, IntPtr stream, CFPropertyListFormat format, ref IntPtr errorString);