diff options
| author | Stefan Boberg <[email protected]> | 2021-05-24 14:26:56 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-24 14:27:07 +0200 |
| commit | f28de4c059cbcdc5b41778c129d5a601451a8bfa (patch) | |
| tree | 4dd5063fd32dd77ed049feb06de825b6bfc28857 /zencore/include | |
| parent | Added BLAKE3::HashBuffer for hashing composite buffers (diff) | |
| download | zen-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.h | 10 |
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 |