Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Util::CRC32 Class Referencefinal

#include <CRC.h>

Public Member Functions

 CRC32 ()=default
 
 CRC32 (const void *buf, const size_t size)
 
 operator U32 () const noexcept
 implicit cast, so that you can do something like foo = CRC(dat,siz);
 
U32 Get () const noexcept
 getting the crc
 
void Reset () noexcept
 
void Hash (const void *buf, size_t siz) noexcept
 

Static Private Member Functions

static U32 Reflect (U32 v, I32 bits) noexcept
 

Private Attributes

U32 mCrc = to_U32(~0u)
 

Static Private Attributes

static U32 mTable [0x100]
 

Detailed Description

Definition at line 43 of file CRC.h.

Constructor & Destructor Documentation

◆ CRC32() [1/2]

Divide::Util::CRC32::CRC32 ( )
default

◆ CRC32() [2/2]

Divide::Util::CRC32::CRC32 ( const void *  buf,
const size_t  size 
)
inlineexplicit

Definition at line 47 of file CRC.h.

Member Function Documentation

◆ Get()

U32 Divide::Util::CRC32::Get ( ) const
inlinenoexcept

getting the crc

Definition at line 58 of file CRC.h.

◆ Hash()

void Divide::Util::CRC32::Hash ( const void *  buf,
size_t  siz 
)
noexcept

Definition at line 66 of file CRC.cpp.

◆ operator U32()

Divide::Util::CRC32::operator U32 ( ) const
inlinenoexcept

implicit cast, so that you can do something like foo = CRC(dat,siz);

Definition at line 54 of file CRC.h.

◆ Reflect()

U32 Divide::Util::CRC32::Reflect ( U32  v,
I32  bits 
)
staticprivatenoexcept

Definition at line 54 of file CRC.cpp.

◆ Reset()

void Divide::Util::CRC32::Reset ( )
inlinenoexcept

Definition at line 62 of file CRC.h.

Member Data Documentation

◆ mCrc

U32 Divide::Util::CRC32::mCrc = to_U32(~0u)
private

Definition at line 66 of file CRC.h.

◆ mTable

U32 Divide::Util::CRC32::mTable
staticprivate

Definition at line 67 of file CRC.h.


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