Hex.padRight
Pads a Hex.Hex
value to the right with zero bytes until it reaches the given size
(default: 32 bytes).
Imports
Named
import { Hex } from 'ox'
Examples
import { Hex } from 'ox'
Hex.padRight('0x1234', 4)
// @log: '0x12340000'
Definition
function padRight(
value: Hex,
size?: number | undefined,
): padRight.ReturnType
Source: src/Hex.ts
Parameters
value
- Type:
Hex
The Hex.Hex
value to pad.
size
- Type:
number | undefined
- Optional
The size (in bytes) of the output hex value.
Return Type
The padded Hex.Hex
value.
padRight.ReturnType