Skip to content

BitsU64

[Source]

Read or write an unsigned integer of a specified bit width (1–64 bits), returning a U64. Bits are read big-endian.

class val BitsU64 is
  Codec[U64 val] val

Implements


Constructors

create

[Source]

new val create(
  count: U8 val)
: BitsU64 val^

Parameters

  • count: U8 val

Returns


Public Functions

decode

[Source]

fun box decode(
  data: Array[U8 val] val,
  offset: USize val)
: ((U64 val , USize val) | DecodeError)

Parameters

Returns


encode

[Source]

fun box encode(
  value: U64 val)
: (Array[U8 val] val | EncodeError)

Parameters

  • value: U64 val

Returns