paddedSizeFor
paddedSizeFor(
rawSize):bigint
Defined in: packages/synapse-core/src/piece/sizing.ts:18
Padded piece size in bytes that a raw payload of rawSize will produce.
Returns the canonical Filecoin padded size (2^height × 32), always a power
of 2 × 32.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
rawSize | number | bigint |
Returns
Section titled “Returns”bigint