| 86 | } |
| 87 | |
| 88 | void BitField::Set(unsigned int bitID) |
| 89 | { |
| 90 | if constexpr (DEBUG_BUILD) |
| 91 | { |
| 92 | if (!IsBitIDCorrect(bitID)) |
| 93 | return; |
| 94 | } |
| 95 | |
| 96 | unsigned int localBitId = bitID % CHUNK_SIZE; |
| 97 | unsigned int chunkID = bitID / CHUNK_SIZE; |
| 98 | _chunks[chunkID] |= (ChunkType)1 << localBitId; |
| 99 | } |
| 100 | |
| 101 | void BitField::Set(const std::vector<unsigned int>& bitIds) |
| 102 | { |
no outgoing calls