@ethereumjs/util / setLengthLeft
setLengthLeft(
msg
,length
):Uint8Array
Defined in: packages/util/src/bytes.ts:153
Left Pads a Uint8Array
with leading zeros till it has length
bytes.
Or it truncates the beginning if it exceeds.
Uint8Array
the value to pad
number
the number of bytes the output should be
Uint8Array