| 32 | } |
| 33 | |
| 34 | std::string uint64ToBase64(uint64_t data) { |
| 35 | std::array<uint8_t, sizeof(data)> bytes; |
| 36 | for (size_t i = 0; i < 8; i++) { |
| 37 | bytes.at(i) = (data >> (i * 8)) & 0xFF; |
| 38 | } |
| 39 | return binaryToBase64(bytes.data(), bytes.size()); |
| 40 | } |
| 41 | |
| 42 | bool base64ToBinaryInternal(const char* encodedString, size_t inSize, std::vector<uint8_t>* ret) { |
| 43 | // Strip out newlines since the decoder returns an error code (0) if it finds them within the encoded string. |
nothing calls this directly
no test coverage detected