padRightEncoder
Adds right padding to the given encoder, extending the encoded value by offset
bytes whilst increasing the size of the encoder accordingly.
For more details, see padRightCodec.
Type Parameters
Parameters
| Parameter | Type | Description |
|---|---|---|
encoder | TEncoder | The encoder to pad. |
offset | number | The number of padding bytes to add after encoding. |
Returns
TEncoder
A new encoder with right padding applied.