class UInt384 : UInt384Value<UInt384>
(source)
An unsigned 384-bit precision number. This is a raw UInt384Value - a 384-bit precision unsigned number of no particular unit.
static val MAX_VALUE: UInt384
The maximum value of a UInt384 |
|
static val MIN_VALUE: UInt384
The minimum value of a UInt384 |
|
static val ONE: UInt384
The value 1 |
|
static val ZERO: UInt384
The value 0 |
fun add(value: UInt384): UInt384 fun add(value: Long): UInt384 |
|
fun addMod(value: UInt384, modulus: UInt384): UInt384 fun addMod(value: Long, modulus: UInt384): UInt384 fun addMod(value: Long, modulus: Long): UInt384 |
|
fun and(value: UInt384): UInt384
Return a bit-wise AND of this value and the supplied value. fun and(bytes: Bytes48): UInt384
Return a bit-wise AND of this value and the supplied bytes. |
|
fun bitLength(): Int |
|
fun compareTo(other: UInt384): Int |
|
fun divide(value: UInt384): UInt384 fun divide(value: Long): UInt384 |
|
fun equals(other: Any?): Boolean |
|
fun fitsInt(): Boolean |
|
fun fitsLong(): Boolean |
|
static fun fromBytes(bytes: Bytes): UInt384
Return a UInt384 containing the value described by the specified bytes. |
|
static fun fromHexString(str: String): UInt384
Parse a hexadecimal string into a UInt384. |
|
fun hashCode(): Int |
|
fun intValue(): Int |
|
fun isZero(): Boolean |
|
fun mod(modulus: UInt384): UInt384 fun mod(modulus: Long): UInt384 |
|
fun multiply(value: UInt384): UInt384 fun multiply(value: Long): UInt384 |
|
fun multiplyMod(value: UInt384, modulus: UInt384): UInt384 fun multiplyMod(value: Long, modulus: UInt384): UInt384 fun multiplyMod(value: Long, modulus: Long): UInt384 |
|
fun not(): UInt384
Return a bit-wise NOT of this value. |
|
fun numberOfLeadingZeros(): Int |
|
fun or(value: UInt384): UInt384
Return a bit-wise OR of this value and the supplied value. fun or(bytes: Bytes48): UInt384
Return a bit-wise OR of this value and the supplied bytes. |
|
fun pow(exponent: UInt384): UInt384 fun pow(exponent: Long): UInt384 |
|
fun shiftLeft(distance: Int): UInt384
Shift all bits in this value to the left. |
|
fun shiftRight(distance: Int): UInt384
Shift all bits in this value to the right. |
|
fun subtract(value: UInt384): UInt384 fun subtract(value: Long): UInt384 |
|
fun toBigInteger(): BigInteger |
|
fun toBytes(): Bytes48 |
|
fun toLong(): Long |
|
fun toMinimalBytes(): Bytes |
|
fun toString(): String |
|
fun toUInt384(): UInt384 |
|
static fun valueOf(value: Long): UInt384
Return a static fun valueOf(value: BigInteger): UInt384
Return a UInt384 containing the specified value. |
|
fun xor(value: UInt384): UInt384
Return a bit-wise XOR of this value and the supplied value. fun xor(bytes: Bytes48): UInt384
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 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 48 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 |