diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-23 15:28:56 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-25 16:01:06 +0100 |
commit | 10b19d747805e4fd1323455dae419091500efc18 (patch) | |
tree | fe4ad542f9d97b35842f4387db4a698d3a7aea35 /src/logTypes.hpp | |
parent | b2416925f8845b70ed25fb4ec7cde8ef11e8c239 (diff) | |
download | webstat-10b19d747805e4fd1323455dae419091500efc18.tar.bz2 webstat-10b19d747805e4fd1323455dae419091500efc18.tar.xz webstat-10b19d747805e4fd1323455dae419091500efc18.zip |
Add helpers for hashing values extracted from log input
zlib's crc32 used here, the interface is a bit C and as a result a bit
casty, but it'll work.
Diffstat (limited to 'src/logTypes.hpp')
-rw-r--r-- | src/logTypes.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logTypes.hpp b/src/logTypes.hpp index d4f1b7b..7439733 100644 --- a/src/logTypes.hpp +++ b/src/logTypes.hpp @@ -21,6 +21,9 @@ namespace WebStat { using std::optional<std::string>::operator=; bool operator<=>(const CLFString &) const = default; }; + + using Crc32Value = uint32_t; + using Entity = std::pair<Crc32Value, std::string_view>; } namespace scn { |