#include <Crc.h>
Public Member Functions | |
constexpr | Crc32 () |
constexpr | Crc32 (AZ::u32 value) |
constexpr | Crc32 (AZStd::string_view view) |
Crc32 (const void *data, size_t size, bool forceLowerCase=false) | |
template<class ByteType , class = AZStd::enable_if_t<sizeof(ByteType) == 1>> | |
constexpr | Crc32 (const ByteType *data, size_t size, bool forceLowerCase=false) |
constexpr | Crc32 (AZStd::span< const AZStd::byte > inputSpan) |
constexpr void | Add (AZStd::string_view view) |
void | Add (const void *data, size_t size, bool forceLowerCase=false) |
template<class ByteType > | |
constexpr auto | Add (const ByteType *data, size_t size, bool forceLowerCase=false) -> AZStd::enable_if_t< sizeof(ByteType)==1 > |
constexpr void | Add (AZStd::span< const AZStd::byte > inputSpan) |
constexpr | operator u32 () const |
constexpr bool | operator== (Crc32 rhs) const |
constexpr bool | operator!= (Crc32 rhs) const |
constexpr bool | operator! () const |
Static Public Member Functions | |
static void | Reflect (AZ::SerializeContext &context) |
Protected Member Functions | |
void | Set (const void *data, size_t size, bool forceLowerCase=false) |
template<class ByteType > | |
constexpr auto | Set (const ByteType *data, size_t size, bool forceLowerCase=false) -> AZStd::enable_if_t< sizeof(ByteType)==1 > |
constexpr void | Combine (u32 crc, size_t len) |
Protected Attributes | |
u32 | m_value |
Class for all of our crc32 types, better than just using ints everywhere.
|
inlineconstexpr |
Initializes to 0.
|
inlineconstexpr |
Initializes from an int.
|
explicitconstexpr |
Calculates the value from a string.
Calculates the value from a block of raw data.