BytesRest¶
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.
Implements¶
Constructors¶
create¶
Returns¶
- BytesRest val^
Public Functions¶
decode¶
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¶
- ((Array[U8 val] val , USize val) | DecodeError)
encode¶
Parameters¶
Returns¶
- (Array[U8 val] val | EncodeError)
eq¶
Parameters¶
- that: BytesRest val
Returns¶
- Bool val
ne¶
Parameters¶
- that: BytesRest val
Returns¶
- Bool val