web3-utilsFunctionssetLengthRightsetLengthRight CallablesetLengthRight(msg: Buffer, length: number): BufferRight Pads a Buffer with trailing zeros till it has length bytes. it truncates the end if it exceeds.Parametersmsg: Bufferthe value to pad (Buffer)length: numberthe number of bytes the output should beReturns Buffer(Buffer)
Right Pads a
Buffer
with trailing zeros till it haslength
bytes. it truncates the end if it exceeds.