Skip to content

BitsU8

[Source]

Read or write an unsigned integer of a specified bit width (1–8 bits), returning a U8.

class val BitsU8 is
  Codec[U8 val] val

Implements


Constructors

create

[Source]

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

Parameters

  • count: U8 val

Returns


Public Functions

decode

[Source]

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

Parameters

Returns


encode

[Source]

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

Parameters

  • value: U8 val

Returns