/// <summary> /// Helper function to compare the data of a PLIST_DATA node against /// a given blob and size. /// This function basically behaves like memcmp after making sure the /// size of the node's data value is equal to the size of cmpval (n), /// making this a "full match" comparison. /// </summary> /// <param name="datanode"> /// node of type PLIST_DATA /// </param> /// <param name="cmpval"> /// data blob to compare against /// </param> /// <param name="n"> /// size of data blob passed in cmpval /// </param> /// <returns> /// 0 if the node's data blob and cmpval are equal, /// > 0 if the node's value is lexicographically greater than cmpval, /// or /// < /// 0 if the node's value is lexicographically less than cmpval. /// </returns> public virtual int plist_data_val_compare(PlistHandle datanode, ref char cmpval, uint n) { return(PlistNativeMethods.plist_data_val_compare(datanode, ref cmpval, n)); }