ConstThen[A: Any val]¶
Decode a literal followed by a value, keeping only the value. On encode, write the literal followed by the value.
Implements¶
- Codec[A] val
Constructors¶
create¶
Parameters¶
Returns¶
- ConstThen[A] val^
Public Functions¶
decode¶
Parameters¶
Returns¶
- ((A , USize val) | DecodeError)
encode¶
Parameters¶
- value: A
Returns¶
- (Array[U8 val] val | EncodeError)