padLeftEncoder
Adds left padding to the given encoder, shifting the encoded value forward
by offset bytes whilst increasing the size of the encoder accordingly.
For more details, see padLeftCodec.
Type Parameters
Parameters
| Parameter | Type | Description |
|---|---|---|
encoder | TEncoder | The encoder to pad. |
offset | number | The number of padding bytes to add before encoding. |
Returns
TEncoder
A new encoder with left padding applied.