BN_cmp() приватный Метод

private BN_cmp ( IntPtr a, IntPtr b ) : int
a System.IntPtr
b System.IntPtr
Результат int
Пример #1
0
        /// <summary>
        /// Calls BN_cmp()
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            BigNumber rhs = obj as BigNumber;

            if ((object)rhs == null)
            {
                return(false);
            }
            return(Native.BN_cmp(this.ptr, rhs.ptr) == 0);
        }
Пример #2
0
 /// <summary>
 /// Calls BN_cmp()
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public int CompareTo(BigNumber other)
 {
     return(Native.BN_cmp(this.ptr, other.ptr));
 }