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

Function MakeFlagString

lib/mdflib/mdflib/src/at4block.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34using namespace mdf;
35
36std::string MakeFlagString(uint16_t flag) {
37 std::ostringstream s;
38 if (flag & mdf::detail::At4Flags::kEmbeddedData) {
39 s << "Embedded";
40 }
41 if (flag & mdf::detail::At4Flags::kCompressedData) {
42 s << (s.str().empty() ? "Compressed" : ",Compressed");
43 }
44 if (flag & mdf::detail::At4Flags::kUsingMd5) {
45 s << (s.str().empty() ? "MD5" : ",MD5");
46 }
47 return s.str();
48}
49
50bool CopyBytes(std::streambuf& source, std::streambuf& dest, uint64_t nof_bytes) {
51 uint8_t temp = 0;

Callers 1

GetBlockPropertyMethod · 0.70

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected