Skip to content

U16LE

[Source]

Read or write a 16-bit unsigned integer in little-endian byte order.

primitive val U16LE is
  Codec[U16 val] val

Implements


Constructors

create

[Source]

new val create()
: U16LE val^

Returns


Public Functions

decode

[Source]

Decode a 16-bit unsigned integer in little-endian byte order.

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

Parameters

Returns


encode

[Source]

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

Parameters

  • value: U16 val

Returns


eq

[Source]

fun box eq(
  that: U16LE val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: U16LE val)
: Bool val

Parameters

Returns