@ethereumjs/util / setLengthRight
setLengthRight(
msg,length,opts):Uint8Array
Defined in: packages/util/src/bytes.ts:187
Right Pads a Uint8Array with trailing zeros till it has length bytes.
Throws if input length exceeds target length, unless allowTruncate option is true.
Uint8Array
the value to pad
number
the number of bytes the output should be
SetLengthOpts = {}
options object with allowTruncate flag
Uint8Array