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));
 }