mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add VoxelStructure lua usertype
This commit is contained in:
parent
bf9f81a98c
commit
88b0f8e3d6
17 changed files with 180 additions and 60 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue