getDecimalFixedPointCodec
Returns a codec for DecimalFixedPoint values of a specific shape, combining getDecimalFixedPointEncoder and getDecimalFixedPointDecoder.
Type Parameters
| Type Parameter |
|---|
TSignedness extends Signedness |
TTotalBits extends number |
TDecimals extends number |
Parameters
| Parameter | Type |
|---|---|
signedness | TSignedness |
totalBits | TTotalBits |
decimals | TDecimals |
config? | FixedPointCodecConfig |
Returns
FixedSizeCodec<DecimalFixedPoint<TSignedness, TTotalBits, TDecimals>, DecimalFixedPoint<TSignedness, TTotalBits, TDecimals>, BytesForTotalBits<TTotalBits>>