mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-12 11:22:00 -04:00
76079b6294
* initial save service updated from encounter's impl * Review cleanup --------- Co-authored-by: Luke Street <luke@street.dev>
18 lines
391 B
C++
18 lines
391 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#ifdef crc32
|
|
// miniz defines crc32 as an alias.
|
|
#undef crc32
|
|
#endif
|
|
|
|
namespace dusk::utils {
|
|
std::string base64_encode(const std::vector<uint8_t>& data);
|
|
bool base64_decode(const std::string& text, std::vector<uint8_t>& out);
|
|
uint32_t crc32(const void* data, size_t size);
|
|
} // namespace dusk::utils
|