addEncoderSizePrefix
Call Signature
Stores the size of the encoder in bytes as a prefix using the prefix encoder.
See addCodecSizePrefix for more information.
Type Parameters
| Type Parameter | Description |
|---|---|
TFrom | The type of the value to encode. |
Parameters
| Parameter | Type |
|---|---|
encoder | FixedSizeEncoder<TFrom> |
prefix | FixedSizeNumberEncoder |
Returns
FixedSizeEncoder<TFrom>
See
Call Signature
Stores the size of the encoder in bytes as a prefix using the prefix encoder.
See addCodecSizePrefix for more information.
Type Parameters
| Type Parameter | Description |
|---|---|
TFrom | The type of the value to encode. |
Parameters
| Parameter | Type |
|---|---|
encoder | Encoder<TFrom> |
prefix | NumberEncoder |
Returns
VariableSizeEncoder<TFrom>