add VoxelStructure lua usertype
This commit is contained in:
@@ -312,13 +312,17 @@ std::string util::base64_encode(const ubyte* data, size_t size) {
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string util::mangleid(uint64_t value) {
|
||||
// todo: use base64
|
||||
std::string util::tohex(uint64_t value) {
|
||||
std::stringstream ss;
|
||||
ss << std::hex << value;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string util::mangleid(uint64_t value) {
|
||||
// todo: use base64
|
||||
return tohex(value);
|
||||
}
|
||||
|
||||
util::Buffer<ubyte> util::base64_decode(const char* str, size_t size) {
|
||||
util::Buffer<ubyte> bytes((size / 4) * 3);
|
||||
ubyte* dst = bytes.data();
|
||||
|
||||
Reference in New Issue
Block a user