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

Function CopyBytes

lib/mdflib/mdflib/src/at4block.cpp:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool CopyBytes(std::streambuf& source, std::streambuf& dest, uint64_t nof_bytes) {
51 uint8_t temp = 0;
52 for (uint64_t ii = 0; ii < nof_bytes; ++ii) {
53 temp = source.sbumpc();
54 dest.sputc(static_cast<char>(temp));
55 }
56 return true;
57}
58
59std::string ConvertMd5Buffer(const std::vector<uint8_t>& buffer) {
60 std::ostringstream temp;

Callers 1

ReadDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected