| 2129 | } |
| 2130 | |
| 2131 | ROBIN_HOOD(NODISCARD) size_t calcNumBytesInfo(size_t numElements) const noexcept { |
| 2132 | // we add a uint64_t, which houses the sentinel (first byte) and padding so we can load |
| 2133 | // 64bit types. |
| 2134 | return numElements + sizeof(uint64_t); |
| 2135 | } |
| 2136 | |
| 2137 | ROBIN_HOOD(NODISCARD) |
| 2138 | size_t calcNumElementsWithBuffer(size_t numElements) const noexcept { |