void MdfBlock::ReadMdComment(std::FILE *file, size_t index_md) { if (!md_comment_ && Link(index_md) > 0) { md_comment_ = std::move(std::make_unique ()); md_comment_->Init(*this); SetFilePosition(file, Link(index_md)); md_comment_->Read(file); } } void MdfBlock::WriteMdComment(std::FILE *file, size_t index_md) { if (md_comment_ && Link(index_md) == 0) { md_commen
| 528 | } |
| 529 | */ |
| 530 | void MdfBlock::WriteTx4(std::streambuf& buffer, size_t index_tx, |
| 531 | const std::string &text) { |
| 532 | if (!text.empty() && Link(index_tx) == 0) { |
| 533 | Tx4Block tx4(text); |
| 534 | tx4.Init(*this); |
| 535 | tx4.Write(buffer); |
| 536 | UpdateLink(buffer, index_tx, tx4.FilePosition()); |
| 537 | } |
| 538 | } |
| 539 | |
| 540 | std::string MdfBlock::ReadTx3(std::streambuf& buffer, size_t index_tx) const { |
| 541 | if (Link(index_tx) > 0) { |
nothing calls this directly
no test coverage detected