AsUInt32() private method

private AsUInt32 ( uint &ret ) : bool
ret uint
return bool
コード例 #1
0
ファイル: LongOps.cs プロジェクト: CookieEaters/FireHTTP
 public static bool AsUInt32(BigInteger self, out uint res) {
     return self.AsUInt32(out res);
 }
コード例 #2
0
ファイル: Converter.cs プロジェクト: gregmalcolm/ironruby
 internal static UInt32 ToUInt32(BigInteger value) {
     UInt32 result;
     if (value.AsUInt32(out result)) {
         return result;
     }
     throw RubyExceptions.CreateRangeError("number too big to convert into System::UInt32");
 }
コード例 #3
0
ファイル: LongOps.cs プロジェクト: CookieEaters/FireHTTP
        public static int Compare(BigInteger x, uint y) {
            uint ix;
            if (x.AsUInt32(out ix)) {
                return ix == y ? 0 : ix > y ? 1 : -1;
            }

            return BigInteger.Compare(x, y);
        }