tjjfvi/subshape

`$.encoded`

Opened this issue · 0 comments

export function encoded<T>($inner: Codec<T>): $.Codec<Uint8Array>

Should encode compatibly with $inner. For encoding, it just inserts the array, and for decoding, it should call $inner._decode to determine the length to slice out.