mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 23:55:08 +00:00
13 lines
405 B
C++
13 lines
405 B
C++
#include <rapidjson/document.h>
|
|
#include <rapidjson/prettywriter.h>
|
|
|
|
struct IndexedFile;
|
|
using Writer = rapidjson::PrettyWriter<rapidjson::StringBuffer>;
|
|
using Reader = rapidjson::Document;
|
|
|
|
void Serialize(Writer& writer, IndexedFile* file);
|
|
void Deserialize(Reader& reader, IndexedFile* file);
|
|
|
|
std::string Serialize(IndexedFile* file);
|
|
IndexedFile Deserialize(std::string path, std::string serialized);
|