| 402 | */ |
| 403 | |
| 404 | uint64_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 | |
| 415 | uint64_t MdfBlock::ReadLinks3(std::streambuf& buffer, size_t nof_links) { |
| 416 | uint64_t bytes = 0; |
nothing calls this directly
no test coverage detected