Packages

class UInt256 extends Ordered[UInt256]

Represents 256 bit unsigned integers with standard arithmetic, byte-wise operation and EVM-specific extensions

Linear Supertypes
Ordered[UInt256], Comparable[UInt256], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UInt256
  2. Ordered
  3. Comparable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def &(that: UInt256): UInt256
  4. def *(that: UInt256): UInt256
  5. def **(that: UInt256): UInt256
  6. def +(that: UInt256): UInt256
  7. def -(that: UInt256): UInt256
  8. def /(that: UInt256): UInt256
  9. def <(that: UInt256): Boolean
    Definition Classes
    Ordered
  10. def <=(that: UInt256): Boolean
    Definition Classes
    Ordered
  11. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def >(that: UInt256): Boolean
    Definition Classes
    Ordered
  13. def >=(that: UInt256): Boolean
    Definition Classes
    Ordered
  14. def ^(that: UInt256): UInt256
  15. def addmod(that: UInt256, modulus: UInt256): UInt256
  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. 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

  18. 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.

  19. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  20. def compare(that: UInt256): Int
    Definition Classes
    UInt256 → Ordered
  21. def compareTo(that: UInt256): Int
    Definition Classes
    Ordered → Comparable
  22. def div(that: UInt256): UInt256
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(that: Any): Boolean
    Definition Classes
    UInt256 → AnyRef → Any
  25. def getByte(that: UInt256): UInt256
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def hashCode(): Int
    Definition Classes
    UInt256 → AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def isZero: Boolean
  30. def max(that: UInt256): UInt256
  31. def min(that: UInt256): UInt256
  32. def mod(that: UInt256): UInt256
  33. def mulmod(that: UInt256, modulus: UInt256): UInt256
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. def sdiv(that: UInt256): UInt256
  38. def sgt(that: UInt256): Boolean
  39. def signExtend(that: UInt256): UInt256
  40. def slt(that: UInt256): Boolean
  41. def smod(that: UInt256): UInt256
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. def toBigInt: BigInt
  44. def toDecString: String
  45. def toHexString: String
  46. def toInt: Int

    returns

    an Int with MSB=0, thus a value in range [0, Int.MaxValue]

  47. def toLong: Long

    returns

    a Long with MSB=0, thus a value in range [0, Long.MaxValue]

  48. def toSignedDecString: String
  49. def toString(): String
    Definition Classes
    UInt256 → AnyRef → Any
  50. def unary_-: UInt256
  51. def unary_~: UInt256
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def |(that: UInt256): UInt256

Deprecated Value Members

  1. 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.

Inherited from Ordered[UInt256]

Inherited from Comparable[UInt256]

Inherited from AnyRef

Inherited from Any

Ungrouped