class UInt256 : UInt256Value<UInt256>
(source)
An unsigned 256-bit precision number. This is a raw UInt256Value - a 256-bit precision unsigned number of no particular unit.
static val MAX_VALUE: UInt256
The maximum value of a UInt256 |
|
static val MIN_VALUE: UInt256
The minimum value of a UInt256 |
|
static val ONE: UInt256
The value 1 |
|
static val ZERO: UInt256
The value 0 |
fun add(value: UInt256): UInt256 fun add(value: Long): UInt256 |
|
fun addMod(value: UInt256, modulus: UInt256): UInt256 fun addMod(value: Long, modulus: UInt256): UInt256 fun addMod(value: Long, modulus: Long): UInt256 |
|
fun and(value: UInt256): UInt256
Return a bit-wise AND of this value and the supplied value. fun and(bytes: Bytes32): UInt256
Return a bit-wise AND of this value and the supplied bytes. |
|
fun bitLength(): Int |
|
fun compareTo(other: UInt256): Int |
|
fun divide(value: UInt256): UInt256 fun divide(value: Long): UInt256 |
|
fun divideCeil(value: UInt256): UInt256 fun divideCeil(value: Long): UInt256 |
|
fun equals(other: Any?): Boolean |
|
fun fitsInt(): Boolean |
|
fun fitsLong(): Boolean |
|
static fun fromBytes(bytes: Bytes): UInt256
Return a UInt256 containing the value described by the specified bytes. |
|
static fun fromHexString(str: String): UInt256
Parse a hexadecimal string into a UInt256. |
|
fun hashCode(): Int |
|
fun intValue(): Int |
|
fun isZero(): Boolean |
|
fun mod(modulus: UInt256): UInt256 fun mod(modulus: Long): UInt256 |
|
fun mod0(modulus: UInt256): UInt256 fun mod0(modulus: Long): UInt256 |
|
fun multiply(value: UInt256): UInt256 fun multiply(value: Long): UInt256 |
|
fun multiplyMod(value: UInt256, modulus: UInt256): UInt256 fun multiplyMod(value: Long, modulus: UInt256): UInt256 fun multiplyMod(value: Long, modulus: Long): UInt256 |
|
fun not(): UInt256
Return a bit-wise NOT of this value. |
|
fun numberOfLeadingZeros(): Int |
|
fun or(value: UInt256): UInt256
Return a bit-wise OR of this value and the supplied value. fun or(bytes: Bytes32): UInt256
Return a bit-wise OR of this value and the supplied bytes. |
|
fun pow(exponent: UInt256): UInt256 fun pow(exponent: Long): UInt256 |
|
fun shiftLeft(distance: Int): UInt256
Shift all bits in this value to the left. |
|
fun shiftRight(distance: Int): UInt256
Shift all bits in this value to the right. |
|
fun subtract(value: UInt256): UInt256 fun subtract(value: Long): UInt256 |
|
fun toBigInteger(): BigInteger |
|
fun toBytes(): Bytes32 |
|
fun toLong(): Long |
|
fun toMinimalBytes(): Bytes |
|
fun toString(): String |
|
fun toUInt256(): UInt256 |
|
static fun valueOf(value: Long): UInt256
Return a static fun valueOf(value: BigInteger): UInt256
Return a UInt256 containing the specified value. |
|
fun xor(value: UInt256): UInt256
Return a bit-wise XOR of this value and the supplied value. fun xor(bytes: Bytes32): UInt256
Return a bit-wise XOR of this value and the supplied bytes. |
open fun addExact(value: T): T open fun addExact(value: Long): T
Returns a value that is |
|
open fun plus(value: T): T open fun plus(value: Long): T
Returns a value that is This notation can be used in Kotlin with the |
|
open fun subtractExact(value: T): T open fun subtractExact(value: Long): T
Returns a value that is |
|
open fun toHexString(): String
This value represented as an hexadecimal string. Note that this representation includes all the 32 underlying bytes, no matter what the integer actually represents (in other words, it can have many leading zeros). For a shorter representation that don't include leading zeros, use |
|
open fun toShortHexString(): String |