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

Method ReadHeader

lib/mdflib/mdflib/src/mdf4file.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23IHeader *Mdf4File::Header() const { return hd_block_.get(); }
24
25void Mdf4File::ReadHeader(std::streambuf& buffer) {
26 if (!id_block_) {
27 id_block_ = std::make_unique<IdBlock>();
28 SetFilePosition(buffer, 0);
29 id_block_->Read(buffer);
30 }
31 if (!hd_block_) {
32 hd_block_ = std::make_unique<Hd4Block>();
33 hd_block_->Init(*id_block_);
34 SetFilePosition(buffer, 64);
35 hd_block_->Read(buffer);
36 }
37
38
39}
40
41void Mdf4File::ReadMeasurementInfo(std::streambuf& buffer) {
42 ReadHeader(buffer);

Callers 3

TEST_FFunction · 0.45
TestMdf3TimeFunction · 0.45
TestMdf4TimeFunction · 0.45

Calls 3

SetFilePositionFunction · 0.85
ReadMethod · 0.45
InitMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TestMdf3TimeFunction · 0.36
TestMdf4TimeFunction · 0.36