Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarJson.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-21 15:57:05 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-21 15:57:05 +1000
commit391527d81252e0fbb1095faf39305351980af816 (patch)
tree16b103a0a719f54d93b91d6675230777a6209e81 /source/core/StarJson.hpp
parentacc8bc02800ce97dbc5424a3d83a1add1593349d (diff)
Hashing improvements
Diffstat (limited to 'source/core/StarJson.hpp')
-rw-r--r--source/core/StarJson.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/StarJson.hpp b/source/core/StarJson.hpp
index f14fbf8..6ccc2a4 100644
--- a/source/core/StarJson.hpp
+++ b/source/core/StarJson.hpp
@@ -4,6 +4,7 @@
#include "StarDataStream.hpp"
#include "StarVariant.hpp"
#include "StarString.hpp"
+#include "StarXXHash.hpp"
namespace Star {
@@ -259,6 +260,8 @@ public:
// Does this Json not share its storage with any other Json?
bool unique() const;
+ void getHash(XXHash3& hasher) const;
+
private:
Json const* ptr(size_t index) const;
Json const* ptr(String const& key) const;