FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
hash.hpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6#pragma once
7
8#include <cstddef>
9#include <cstdint>
10
11namespace FEAT
12{
13 class Hash
14 {
15 public:
30 static std::uint32_t crc32(std::size_t n, const void* buffer);
31
46 static std::uint32_t crc32_update(std::size_t n, const void* buffer, std::uint32_t crc_in);
47 };
48} // namespace FEAT
static std::uint32_t crc32(std::size_t n, const void *buffer)
Computes the CRC-32 checksum of a buffer.
Definition: hash.cpp:55
static std::uint32_t crc32_update(std::size_t n, const void *buffer, std::uint32_t crc_in)
Updates a CRC-32 checksum of a buffer.
Definition: hash.cpp:47
FEAT namespace.
Definition: adjactor.hpp:12