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

Method WriteTx4

lib/mdflib/mdflib/src/mdfblock.cpp:530–538  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

528}
529*/
530void 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
540std::string MdfBlock::ReadTx3(std::streambuf& buffer, size_t index_tx) const {
541 if (Link(index_tx) > 0) {

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.80
InitMethod · 0.45
WriteMethod · 0.45
FilePositionMethod · 0.45

Tested by

no test coverage detected