/// <summary> /// Helper function to compare the data of a PLIST_DATA node against /// a given blob and size, while no more than n bytes are compared. /// This function basically behaves like memcmp after making sure the /// size of the node's data value is at least n, making this a /// "starts with" 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 value 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_with_size(PlistHandle datanode, ref char cmpval, uint n) { return(PlistNativeMethods.plist_data_val_compare_with_size(datanode, ref cmpval, n)); }