MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / WriteBlockList

Method WriteBlockList

lib/mdflib/mdflib/src/datalistblock.cpp:170–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void 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
186MdfBlock* DataListBlock::Find(int64_t index) const {
187 for (auto& p : block_list_) {

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
getMethod · 0.45
FilePositionMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected