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