# leafCountToRawSize

> **leafCountToRawSize**(`leafCount`): `bigint`

Defined in: [packages/synapse-core/src/utils/pdp-size.ts:16](https://github.com/FilOzone/synapse-sdk/blob/0c729dad461472f017e4d84f8e6ac16e6afbe7c0/packages/synapse-core/src/utils/pdp-size.ts#L16)

Convert a PDP data-bearing leaf count to the byte size used by FWSS pricing.

This mirrors PDP's `Cids.leafCountToRawSize()`. It is an aggregate
approximation: because PDP records only data-bearing leaves, the result can
exceed the exact raw payload size by up to 31 bytes per piece. FWSS applies
this conversion once to the total data-set leaf count before calculating the
storage rate.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `leafCount` | `bigint` | Number of 32-byte leaves reported by PDP Verifier |

## Returns

`bigint`

Aggregate byte size used by FWSS storage pricing