The pool's total byte budget (rounded down to whole chunks; must fit at least one chunk).
The fixed chunk size in bytes.
Physical bytes currently acquired (chunk-rounded).
The fixed chunk size in bytes.
Chunks currently free.
A snapshot of runtime counters.
The pool's total byte capacity (whole chunks).
Total chunks in the pool.
Acquire chunks to hold bytes. All-or-nothing: returns undefined (and
changes nothing) if the free chunks can't cover the request — the
caller's cue to evict and retry.
The byte size to hold (0 is allowed and acquires no chunks).
The span, or undefined if it can't fit.
The physical (chunk-rounded) cost of a byte size — what an acquire of
bytes actually consumes. Use this for any budget accounting layered
above the pool so logical charges cover physical use.
The byte size to round.
The chunk-rounded byte cost.
Return a span's chunks to the freelist. The span must not be used (or released) again afterwards.
The span to release.
A budgeted pool of fixed-size chunks with a freelist. Purely accounting — see the module docs for how it maps onto real memory.