참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
data
padded on the left to length
bytes.
If data
already exceeds length
, a BufferOverrunError is thrown.
This pads data the same as values are in Solidity (e.g. uint128
).
Parameter | Type | Description |
---|---|---|
data | BytesLike | The data to pad. |
length | number | The length to pad to. |
string
The padded data.