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

Function GetLastFilePosition

lib/mdflib/mdflib/src/mdfblock.cpp:147–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147int64_t GetLastFilePosition(std::streambuf& buffer) {
148 const auto pos = buffer.pubseekoff(0, std::ios_base::end);
149 if (pos < 0) {
150 throw std::ios_base::failure("Failed to get last stream position");
151 }
152 return pos;
153}
154
155void SetFilePosition(std::streambuf& buffer, int64_t position) {
156 const auto pos = buffer.pubseekpos(

Callers 3

TESTFunction · 0.85
UpdateDataSizeMethod · 0.85
SaveQueueMethod · 0.85

Calls 1

failureFunction · 0.85

Tested by 1

TESTFunction · 0.68