Open 3D Engine AzCore API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::Crc32 Class Reference

#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
 

Detailed Description

Class for all of our crc32 types, better than just using ints everywhere.

Constructor & Destructor Documentation

◆ Crc32() [1/4]

constexpr AZ::Crc32::Crc32 ( )
inlineconstexpr

Initializes to 0.

◆ Crc32() [2/4]

constexpr AZ::Crc32::Crc32 ( AZ::u32  value)
inlineconstexpr

Initializes from an int.

◆ Crc32() [3/4]

constexpr AZ::Crc32::Crc32 ( AZStd::string_view  view)
explicitconstexpr

Calculates the value from a string.

◆ Crc32() [4/4]

AZ::Crc32::Crc32 ( const void *  data,
size_t  size,
bool  forceLowerCase = false 
)

Calculates the value from a block of raw data.


The documentation for this class was generated from the following files: