Skip to content

BytesRest

[Source]

Read all remaining bytes, or write an array of bytes with no length constraint.

Requires byte alignment. On decode, consumes everything from the current position to the end of the input.

primitive val BytesRest is
  Codec[Array[U8 val] val] val

Implements


Constructors

create

[Source]

new val create()
: BytesRest val^

Returns


Public Functions

decode

[Source]

Decode all bytes from the current position to the end of the input.

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

Parameters

Returns


encode

[Source]

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

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns