mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
binary json format introduced + specification
This commit is contained in:
parent
faa581a928
commit
3837cdcf95
13 changed files with 649 additions and 326 deletions
|
|
@ -16,7 +16,9 @@ namespace json {
|
|||
class JArray;
|
||||
class Value;
|
||||
|
||||
extern std::string stringify(JObject* obj, bool nice, std::string indent);
|
||||
extern std::string stringify(const JObject* obj, bool nice, const std::string& indent);
|
||||
extern std::vector<ubyte> to_binary(const JObject* obj);
|
||||
extern JObject* from_binary(const ubyte* src, size_t size);
|
||||
|
||||
enum class valtype {
|
||||
object, array, number, integer, string, boolean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue