binary json: compressed documents support

This commit is contained in:
MihailRis 2024-01-17 19:33:04 +03:00
parent 5bcbeb771f
commit 7d35356f9d
2 changed files with 18 additions and 7 deletions

View file

@ -5,6 +5,7 @@
#include "../typedefs.h"
namespace gzip {
const unsigned char MAGIC[] = "\x1F\x8B";
std::vector<ubyte> compress(const ubyte* src, size_t size);
std::vector<ubyte> decompress(const ubyte* src, size_t size);
}