mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add json BJSON_TYPE_BYTES support
This commit is contained in:
parent
6f4a7db910
commit
f8fadf8b74
7 changed files with 72 additions and 8 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "typedefs.hpp"
|
||||
#include "util/Buffer.hpp"
|
||||
|
||||
namespace util {
|
||||
/// @brief Function used for string serialization in text formats
|
||||
|
|
@ -56,8 +57,8 @@ namespace util {
|
|||
std::wstring to_wstring(double x, int precision);
|
||||
|
||||
std::string base64_encode(const ubyte* data, size_t size);
|
||||
std::vector<ubyte> base64_decode(const char* str, size_t size);
|
||||
std::vector<ubyte> base64_decode(const std::string& str);
|
||||
util::Buffer<ubyte> base64_decode(const char* str, size_t size);
|
||||
util::Buffer<ubyte> base64_decode(const std::string& str);
|
||||
|
||||
std::string mangleid(uint64_t value);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue