aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-24 14:26:56 +0200
committerStefan Boberg <[email protected]>2021-05-24 14:27:07 +0200
commitf28de4c059cbcdc5b41778c129d5a601451a8bfa (patch)
tree4dd5063fd32dd77ed049feb06de825b6bfc28857 /zencore/include
parentAdded BLAKE3::HashBuffer for hashing composite buffers (diff)
downloadzen-f28de4c059cbcdc5b41778c129d5a601451a8bfa.tar.xz
zen-f28de4c059cbcdc5b41778c129d5a601451a8bfa.zip
Moved CRC32 compute into separate cpp/h to enable usage outside of the retro cache
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/crc32.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/zencore/include/zencore/crc32.h b/zencore/include/zencore/crc32.h
new file mode 100644
index 000000000..20d711b06
--- /dev/null
+++ b/zencore/include/zencore/crc32.h
@@ -0,0 +1,10 @@
+#pragma once
+
+#include <zencore/zencore.h>
+
+namespace zen {
+
+uint32_t MemCrc32(const void* InData, size_t Length, uint32_t Crc = 0);
+uint32_t StrCrc(const char* Data);
+
+} // namespace zen