subshape icon indicating copy to clipboard operation
subshape copied to clipboard

`$.encoded`

Open tjjfvi opened this issue 1 year ago • 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.

tjjfvi avatar Apr 07 '23 22:04 tjjfvi