| 168 | } |
| 169 | |
| 170 | void DataListBlock::WriteBlockList(std::streambuf& buffer, size_t first_index) { |
| 171 | |
| 172 | for (size_t index = 0; index < block_list_.size(); ++index) { |
| 173 | auto* block = block_list_[index].get(); |
| 174 | if (block == nullptr) { |
| 175 | continue; |
| 176 | } |
| 177 | if (block->FilePosition() > 0) { |
| 178 | continue; |
| 179 | } |
| 180 | |
| 181 | block->Write(buffer); |
| 182 | UpdateLink(buffer, first_index + index, block->FilePosition()); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | MdfBlock* DataListBlock::Find(int64_t index) const { |
| 187 | for (auto& p : block_list_) { |
nothing calls this directly
no test coverage detected