Conditional[A: Any val]¶
Conditionally present field: if the flag is true, decode/encode using
the inner codec; if false, the value is None.
Implements¶
Constructors¶
create¶
Parameters¶
Returns¶
- Conditional[A] val^
Public Functions¶
decode¶
fun box decode(
data: Array[U8 val] val,
offset: USize val)
: (((A | None val) , USize val) | DecodeError)
Parameters¶
Returns¶
- (((A | None val) , USize val) | DecodeError)
encode¶
Parameters¶
- value: (A | None val)
Returns¶
- (Array[U8 val] val | EncodeError)