setLengthLeft
Callable
Parameters
msg: Uint8Array
the value to pad (Uint8Array)
length: number
the number of bytes the output should be
Returns Uint8Array
(Uint8Array)
the value to pad (Uint8Array)
the number of bytes the output should be
(Uint8Array)
Left Pads a
Uint8Array
with leading zeros till it haslength
bytes. Or it truncates the beginning if it exceeds.