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

Method ReadHeader3

lib/mdflib/mdflib/src/mdfblock.cpp:404–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402*/
403
404uint64_t MdfBlock::ReadHeader3(std::streambuf& buffer) {
405 file_position_ = GetFilePosition(buffer);
406 uint64_t bytes = ReadStr(buffer, block_type_, 2);
407 if (block_type_ == "##") {
408 throw std::runtime_error("MDF 4 header detected. This is not an MDF 3 file.");
409 }
410 bytes += ReadNumber(buffer, block_size_);
411 block_length_ = block_size_;
412 return bytes;
413}
414
415uint64_t MdfBlock::ReadLinks3(std::streambuf& buffer, size_t nof_links) {
416 uint64_t bytes = 0;

Callers

nothing calls this directly

Calls 2

GetFilePositionFunction · 0.85
ReadStrFunction · 0.85

Tested by

no test coverage detected