class UInt256 extends Ordered[UInt256]
Represents 256 bit unsigned integers with standard arithmetic, byte-wise operation and EVM-specific extensions
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- UInt256
- Ordered
- Comparable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def &(that: UInt256): UInt256
- def *(that: UInt256): UInt256
- def **(that: UInt256): UInt256
- def +(that: UInt256): UInt256
- def -(that: UInt256): UInt256
- def /(that: UInt256): UInt256
-
def
<(that: UInt256): Boolean
- Definition Classes
- Ordered
-
def
<=(that: UInt256): Boolean
- Definition Classes
- Ordered
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
>(that: UInt256): Boolean
- Definition Classes
- Ordered
-
def
>=(that: UInt256): Boolean
- Definition Classes
- Ordered
- def ^(that: UInt256): UInt256
- def addmod(that: UInt256, modulus: UInt256): UInt256
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
byteSize: Int
Used for gas calculation for EXP opcode.
Used for gas calculation for EXP opcode. See YP Appendix H.1 (220) For n > 0: (n.bitLength - 1) / 8 + 1 == 1 + floor(log_256(n))
- returns
Size in bytes excluding the leading 0 bytes
-
lazy val
bytes: ByteString
Converts a BigInt to a ByteString.
Converts a BigInt to a ByteString. Output ByteString is padded with 0's from the left side up to UInt256.Size bytes.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
compare(that: UInt256): Int
- Definition Classes
- UInt256 → Ordered
-
def
compareTo(that: UInt256): Int
- Definition Classes
- Ordered → Comparable
- def div(that: UInt256): UInt256
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- UInt256 → AnyRef → Any
- def getByte(that: UInt256): UInt256
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- UInt256 → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isZero: Boolean
- def max(that: UInt256): UInt256
- def min(that: UInt256): UInt256
- def mod(that: UInt256): UInt256
- def mulmod(that: UInt256, modulus: UInt256): UInt256
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def sdiv(that: UInt256): UInt256
- def sgt(that: UInt256): Boolean
- def signExtend(that: UInt256): UInt256
- def slt(that: UInt256): Boolean
- def smod(that: UInt256): UInt256
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toBigInt: BigInt
- def toDecString: String
- def toHexString: String
-
def
toInt: Int
- returns
an Int with MSB=0, thus a value in range [0, Int.MaxValue]
-
def
toLong: Long
- returns
a Long with MSB=0, thus a value in range [0, Long.MaxValue]
- def toSignedDecString: String
-
def
toString(): String
- Definition Classes
- UInt256 → AnyRef → Any
- def unary_-: UInt256
- def unary_~: UInt256
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def |(that: UInt256): UInt256
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.