注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。
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).
Parameters
| Parameter | Type | Description |
|---|---|---|
data | BytesLike | The data to pad. |
length | number | The length to pad to. |
Returns
string
The padded data.
