MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / zeroPadBytes

Function zeroPadBytes

lib.commonjs/utils/data.js:180–182  ·  view source on GitHub ↗

* Return the [[DataHexString]] of %%data%% padded on the **right** * to %%length%% bytes. * * If %%data%% already exceeds %%length%%, a [[BufferOverrunError]] is * thrown. * * This pads data the same as **bytes** are in Solidity * (e.g. ``bytes16``).

(data, length)

Source from the content-addressed store, hash-verified

178 * (e.g. ``bytes16``).
179 */
180function zeroPadBytes(data, length) {
181 return zeroPad(data, length, false);
182}
183exports.zeroPadBytes = zeroPadBytes;
184//# sourceMappingURL=data.js.map

Callers

nothing calls this directly

Calls 1

zeroPadFunction · 0.70

Tested by

no test coverage detected