| 106 | } |
| 107 | |
| 108 | size_t Dec(size_t offset) { |
| 109 | if (IsTree) { |
| 110 | return 0; |
| 111 | } |
| 112 | ui8& count = Body.at(offset / MinNodeSize); |
| 113 | Y_ASSERT(count > 0); |
| 114 | if (count != MaxCount) { |
| 115 | --count; |
| 116 | } |
| 117 | return count; |
| 118 | } |
| 119 | |
| 120 | void Swap(TTrieNodeCounts& other) { |
| 121 | Body.swap(other.Body); |