subshape
subshape copied to clipboard
`$.encoded`
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.