| 58 | } |
| 59 | |
| 60 | void Allocation::appendMove(Allocation& other) { |
| 61 | for (auto& run : other.runs_) { |
| 62 | numPages_ += run.numPages(); |
| 63 | runs_.push_back(std::move(run)); |
| 64 | } |
| 65 | other.runs_.clear(); |
| 66 | other.numPages_ = 0; |
| 67 | } |
| 68 | |
| 69 | void Allocation::findRun(uint64_t offset, int32_t* index, int32_t* offsetInRun) |
| 70 | const { |