- createDecoder<TTo, TSize extends number>(
decoder: Omit<FixedSizeDecoder<TTo, TSize>, "decode">,
): FixedSizeDecoder<TTo, TSize> - createDecoder<TTo>(
decoder: Omit<VariableSizeDecoder<TTo>, "decode">,
): VariableSizeDecoder<TTo> - createDecoder<TTo>(
decoder:
| Omit<FixedSizeDecoder<TTo, number>, "decode">
| Omit<VariableSizeDecoder<TTo>, "decode">,
): Decoder<TTo>
Fills the missing
decodefunction using the existingreadfunction.