FixedSizeNumberDecoder

type FixedSizeNumberDecoder<TSize> = 
  | FixedSizeDecoder<bigint, TSize>
| FixedSizeDecoder<number, TSize>;

Represents a fixed-size decoder for numbers and bigints.

This decoder reads a fixed number of bytes (TSize) and converts them into a number or bigint.

Type Parameters

Type ParameterDefault typeDescription
TSize extends numbernumberThe number of bytes expected for decoding.

See

NumberDecoder

On this page