|
| static constexpr std::uint32_t | maxIndex () |
| | Largest representable slot index.
|
| static constexpr std::uint32_t | maxGeneration () |
| | Largest representable generation before it wraps.
|
| static constexpr std::uint32_t | indexOf (std::uint32_t raw) |
| | Extract the slot index from a packed value.
|
| static constexpr std::uint32_t | generationOf (std::uint32_t raw) |
| | Extract the generation from a packed value.
|
| static constexpr std::uint32_t | pack (std::uint32_t index, std::uint32_t generation) |
| | Pack an index + generation. Out-of-range inputs are masked, not trusted — callers that mint ids from runtime values must range-check the index first (e.g. Registry::activateIndex's ES_VERIFY), which is the structural home for that guard.
|
template<std::uint32_t IndexBits, std::uint32_t GenBits>
struct esengine::PackedId< IndexBits, GenBits >
Index+generation packing into a u32, parameterized by the bit split.
- Template Parameters
-
| IndexBits | Number of low bits holding the slot index. |
| GenBits | Number of high bits holding the reuse generation. |
Definition at line 42 of file PackedId.hpp.
template<std::uint32_t IndexBits, std::uint32_t GenBits>
| constexpr std::uint32_t esengine::PackedId< IndexBits, GenBits >::pack |
( |
std::uint32_t | index, |
|
|
std::uint32_t | generation ) |
|
inlinestaticconstexpr |
Pack an index + generation. Out-of-range inputs are masked, not trusted — callers that mint ids from runtime values must range-check the index first (e.g. Registry::activateIndex's ES_VERIFY), which is the structural home for that guard.
Definition at line 71 of file PackedId.hpp.