Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new <see cref="PlistArrayIterHandle"/> from a <see cref="IntPtr"/>.
        /// </summary>
        /// <param name="unsafeHandle">
        /// The underlying <see cref="IntPtr"/>
        /// </param>
        /// <param name="ownsHandle">
        /// <see langword="true"/> to reliably release the handle during the finalization phase; <see langword="false"/> to prevent reliable release (not recommended).
        /// </param>
        /// <returns>
        /// </returns>
        public static PlistArrayIterHandle DangerousCreate(System.IntPtr unsafeHandle, bool ownsHandle)
        {
            PlistArrayIterHandle safeHandle = new PlistArrayIterHandle(ownsHandle);

            safeHandle.SetHandle(unsafeHandle);
            return(safeHandle);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Increment iterator of a #PLIST_ARRAY node.
 /// </summary>
 /// <param name="node">
 /// The node of type #PLIST_ARRAY.
 /// </param>
 /// <param name="iter">
 /// Iterator of the array
 /// </param>
 /// <param name="item">
 /// Location to store the item. The caller must *not* free the
 /// returned item. Will be set to NULL when no more items are left
 /// to iterate.
 /// </param>
 public virtual void plist_array_next_item(PlistHandle node, PlistArrayIterHandle iter, out PlistHandle item)
 {
     PlistNativeMethods.plist_array_next_item(node, iter, out item);
     item.Api = this.Parent;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create an iterator of a #PLIST_ARRAY node.
 /// The allocated iterator should be freed with the standard free function.
 /// </summary>
 /// <param name="node">
 /// The node of type #PLIST_ARRAY
 /// </param>
 /// <param name="iter">
 /// Location to store the iterator for the array.
 /// </param>
 public virtual void plist_array_new_iter(PlistHandle node, out PlistArrayIterHandle iter)
 {
     PlistNativeMethods.plist_array_new_iter(node, out iter);
     iter.Api = this.Parent;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a new <see cref="PlistArrayIterHandle"/> from a <see cref="IntPtr"/>.
 /// </summary>
 /// <param name="unsafeHandle">
 /// The underlying <see cref="IntPtr"/>
 /// </param>
 /// <returns>
 /// </returns>
 public static PlistArrayIterHandle DangerousCreate(System.IntPtr unsafeHandle)
 {
     return(PlistArrayIterHandle.DangerousCreate(unsafeHandle, true));
 }
Ejemplo n.º 5
0
 public object MarshalNativeToManaged(System.IntPtr nativeData)
 {
     return(PlistArrayIterHandle.DangerousCreate(nativeData, false));
 }
 public static extern void plist_array_next_item(PlistHandle node, PlistArrayIterHandle iter, out PlistHandle item);
 public static extern void plist_array_new_iter(PlistHandle node, out PlistArrayIterHandle iter);