Example #1
0
 public void FromIntPtr(IntPtr ptr)
 {
     Value = ptr.PtrToString ();
 }
Example #2
0
 /// <summary>
 /// Internal collation sequence function, which wraps up the raw string pointers and executes the Compare() virtual function.
 /// </summary>
 /// <param name="len1">Length of the string pv1</param>
 /// <param name="ptr1">Pointer to the first string to compare</param>
 /// <param name="len2">Length of the string pv2</param>
 /// <param name="ptr2">Pointer to the second string to compare</param>
 /// <returns>Returns -1 if the first string is less than the second.  0 if they are equal, or 1 if the first string is greater
 /// than the second.</returns>
 internal int CompareCallback(int len1, IntPtr ptr1, int len2, IntPtr ptr2)
 {
   return Compare(ptr1.PtrToString (), ptr2.PtrToString ());
 }