Navigation
API > API/Runtime > API/Runtime/Core
CRC hash generation for different types of input data
| Name | FCrc |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Crc.h |
| Include Path | #include "Misc/Crc.h" |
Syntax
struct FCrc
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MemCrc32Functor | uint32(*) | Generates CRC hash of the memory area. | Misc/Crc.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CRCTable_DEPRECATED | uint32 | DEPRECATED These tables and functions are deprecated because they're using tables and implementations which give values different from what a user of a typical CRC32 algorithm might expect. | Misc/Crc.h |
| CRCTablesSB8 | uint32 | Lookup table with precalculated CRC values - slicing by 8 implementation | Misc/Crc.h |
| CRCTablesSB8_DEPRECATED | uint32 | Lookup table with precalculated CRC values - slicing by 8 implementation | Misc/Crc.h |
| MemCrc32Func | MemCrc32Functor | Misc/Crc.h |
Functions
Public
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void Init() |
Initializes the CRC lookup table. Must be called before any of the CRC functions are used. | Misc/Crc.h | |
static uint32 MemCrc32
(
const void* Data, |
Misc/Crc.h | ||
static uint32 StrCrc32
(
const CharType* Data, |
String CRC. Prefer Hash/Fnv.h for new code, CRCs are not very good and fairly slow. | Misc/Crc.h | |
static uint32 StrCrc32Len
(
const CharType* Data, |
String CRC. Prefer Hash/Fnv.h for new code, CRCs are not very good and fairly slow. | Misc/Crc.h | |
static uint32 TypeCrc32
(
const T& Data, |
Generates CRC hash of the element. | Misc/Crc.h |
Deprecated Functions
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint32 MemCrc_DEPRECATED
(
const void* Data, |
Generates CRC hash of the memory area | Misc/Crc.h | |
static uint32 StrCrc_DEPRECATED
(
const CharType* Data |
String CRC. | Misc/Crc.h | |
static uint32 StrCrc_DEPRECATED
(
const int32 DataLen, |
String CRC. | Misc/Crc.h | |
static uint32 Strihash_DEPRECATED
(
const CharType* Data |
Case insensitive string hash function. | Misc/Crc.h | |
uint32 Strihash_DEPRECATED
(
const ANSICHAR* Data |
Misc/Crc.h | ||
uint32 Strihash_DEPRECATED
(
const WIDECHAR* Data |
Misc/Crc.h | ||
uint32 Strihash_DEPRECATED
(
const UTF8CHAR* Data |
Misc/Crc.h | ||
static uint32 Strihash_DEPRECATED
(
const int32 DataLen, |
Misc/Crc.h | ||
uint32 Strihash_DEPRECATED
(
const int32 DataLen, |
Misc/Crc.h | ||
uint32 Strihash_DEPRECATED
(
const int32 DataLen, |
Misc/Crc.h | ||
uint32 Strihash_DEPRECATED
(
const int32 DataLen, |
Misc/Crc.h |