| 48 | } |
| 49 | |
| 50 | bool 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 | |
| 59 | std::string ConvertMd5Buffer(const std::vector<uint8_t>& buffer) { |
| 60 | std::ostringstream temp; |