Word64

scalus.cardano.ledger.Word64
See theWord64 companion class
object Word64

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Word64.type

Members list

Type members

Classlikes

object given_Decoder_Word64 extends Decoder[Word64]

CBOR decoder for Word64.

CBOR decoder for Word64.

Handles both regular CBOR integers and big integers, ensuring proper unsigned interpretation of the decoded value.

Attributes

Supertypes
trait Decoder[Word64]
class Object
trait Matchable
class Any
Self type
object given_Encoder_Word64 extends Encoder[Word64]

CBOR encoder for Word64.

CBOR encoder for Word64.

Encodes small values (≤ Long.MAX_VALUE) as CBOR integers, and large values as CBOR big integers for proper unsigned semantics.

Attributes

Supertypes
trait Encoder[Word64]
class Object
trait Matchable
class Any
Self type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromBigInteger(bi: BigInteger): Word64

Creates a Word64 from a BigInteger.

Creates a Word64 from a BigInteger.

Value parameters

bi

the BigInteger value

Attributes

Returns

a Word64 representing the value

Throws
IllegalArgumentException

if the value is negative or exceeds 64 bits

def fromUnsignedInt(value: Int): Word64

Creates a Word64 from an unsigned integer, promoting it to 64 bits.

Creates a Word64 from an unsigned integer, promoting it to 64 bits.

Value parameters

value

the unsigned 32-bit integer

Attributes

Returns

a Word64 representing the value

def fromUnsignedString(s: String): Word64

Creates a Word64 from an unsigned string representation.

Creates a Word64 from an unsigned string representation.

Value parameters

s

string representation of an unsigned 64-bit integer

Attributes

Returns

a Word64 representing the parsed value

Throws
NumberFormatException

if the string is not a valid unsigned long

Concrete fields

Word64 representing the maximum 64-bit unsigned value (2^64 - 1)

Word64 representing the maximum 64-bit unsigned value (2^64 - 1)

Attributes

val One: Word64

Word64 representing one

Word64 representing one

Attributes

val Zero: Word64

Word64 representing zero

Word64 representing zero

Attributes

Givens

Givens

CBOR decoder for Word64.

CBOR decoder for Word64.

Handles both regular CBOR integers and big integers, ensuring proper unsigned interpretation of the decoded value.

Attributes

CBOR encoder for Word64.

CBOR encoder for Word64.

Encodes small values (≤ Long.MAX_VALUE) as CBOR integers, and large values as CBOR big integers for proper unsigned semantics.

Attributes