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

Method ReadData

lib/mdflib/mdflib/src/sr3block.cpp:80–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80void Sr3Block::ReadData(std::streambuf& buffer) const {
81 uint64_t data_size = DataSize();
82 if (data_size == 0) {
83 data_list_.clear();
84 return;
85 }
86 try {
87 data_list_.resize(static_cast<size_t>(data_size), 0);
88 } catch (const std::exception&) {
89 data_list_.clear();
90 return;
91 }
92
93 SetFilePosition(buffer, Link(kIndexData));
94 ReadByte(buffer,data_list_, data_size);
95}
96
97void Sr3Block::ClearData() {
98 DataListBlock::ClearData();

Callers

nothing calls this directly

Calls 4

SetFilePositionFunction · 0.85
ReadByteFunction · 0.85
clearMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected