diff options
| author | Dan Engelbrecht <[email protected]> | 2023-11-13 16:19:39 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-13 16:19:39 +0100 |
| commit | d52bed8d5a37a39c88b78a19e22f2b7b3f6dd1d6 (patch) | |
| tree | 2709bce7020faa9c73e784dd2a5997b384395b56 /src/zencore/include | |
| parent | package dependency clean-ups (#531) (diff) | |
| download | zen-d52bed8d5a37a39c88b78a19e22f2b7b3f6dd1d6.tar.xz zen-d52bed8d5a37a39c88b78a19e22f2b7b3f6dd1d6.zip | |
gc history log (#519)
- Feature: Writes a `gc.log` with settings and detailed result after each GC execution (version 2 only)
- Break out file name rotate to allow access for gclog
- CompactBinaryToJson(MemoryView Data, StringBuilderBase& InBuilder)
Diffstat (limited to 'src/zencore/include')
| -rw-r--r-- | src/zencore/include/zencore/compactbinary.h | 7 | ||||
| -rw-r--r-- | src/zencore/include/zencore/filesystem.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/compactbinary.h b/src/zencore/include/zencore/compactbinary.h index 66e621a8a..cb032e34a 100644 --- a/src/zencore/include/zencore/compactbinary.h +++ b/src/zencore/include/zencore/compactbinary.h @@ -1470,6 +1470,13 @@ end(CbFieldView&) return CbFieldViewIterator(); } +/** + * Serialize serialized compact binary blob to jaons. It must be 0 to n fields with including type for each field + */ +ZENCORE_API void CompactBinaryToJson(MemoryView Data, StringBuilderBase& InBuilder); + +ZENCORE_API std::vector<CbFieldView> ReadCompactBinaryStream(MemoryView Data); + void uson_forcelink(); // internal } // namespace zen diff --git a/src/zencore/include/zencore/filesystem.h b/src/zencore/include/zencore/filesystem.h index 075188993..22eb40e45 100644 --- a/src/zencore/include/zencore/filesystem.h +++ b/src/zencore/include/zencore/filesystem.h @@ -211,6 +211,8 @@ void GetDirectoryContent(const std::filesystem::path& RootDir, uint8_t Flags, Di std::string GetEnvVariable(std::string_view VariableName); +std::error_code RotateFiles(const std::filesystem::path& Filename, std::size_t MaxFiles); + ////////////////////////////////////////////////////////////////////////// void filesystem_forcelink(); // internal |