Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
crypto_crc32.h
1#ifndef SOURCEMETA_CORE_CRYPTO_CRC32_H_
2#define SOURCEMETA_CORE_CRYPTO_CRC32_H_
3
4#ifndef SOURCEMETA_CORE_CRYPTO_EXPORT
5#include <sourcemeta/core/crypto_export.h>
6#endif
7
8#include <cstdint> // std::uint32_t
9#include <string_view> // std::string_view
10
11namespace sourcemeta::core {
12
23auto SOURCEMETA_CORE_CRYPTO_EXPORT crc32(const std::string_view input)
24 -> std::uint32_t;
25
39auto SOURCEMETA_CORE_CRYPTO_EXPORT crc32_update(const std::uint32_t previous,
40 const std::string_view input)
41 -> std::uint32_t;
42
43} // namespace sourcemeta::core
44
45#endif
auto SOURCEMETA_CORE_CRYPTO_EXPORT crc32(const std::string_view input) -> std::uint32_t
auto SOURCEMETA_CORE_CRYPTO_EXPORT crc32_update(const std::uint32_t previous, const std::string_view input) -> std::uint32_t