FCrc

CRC hash generation for different types of input data

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/Crc.h

Include

#include "Misc/Crc.h"

Syntax

struct FCrc

Remarks

CRC hash generation for different types of input data

Functions

Name Description

Public function Static

void

 

Init()

Initializes the CRC lookup table. Must be called before any of the CRC functions are used.

Public function Static

uint32

 

MemCrc32

(
    const void* Data,
    int32 Length,
    uint32 CRC
)

Generates CRC hash of the memory area

Public function Static

TEnableIf< s...

 

StrCrc32

(
    const CharType* Data,
    uint32 CRC
)

String CRC.

Public function Static

TEnableIf< s...

 

StrCrc32

(
    const CharType* Data,
    uint32 CRC
)

Public function Static

uint32

 

TypeCrc32

(
    const T& Data,
    uint32 CRC
)

Generates CRC hash of the element

Constants

Name

Description

CRCTable_DEPRECATED

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.lookup table with precalculated CRC values

CRCTablesSB8

Lookup table with precalculated CRC values - slicing by 8 implementation

CRCTablesSB8_DEPRECATED

Lookup table with precalculated CRC values - slicing by 8 implementation

Deprecated Functions

Name Description

Public function Static

uint32

 

MemCrc_DEPRECATED

(
    const void* Data,
    int32 Length,
    uint32 CRC
)

Generates CRC hash of the memory area

Public function Static

uint32

 

StrCrc_DEPRECATED

(
    const CharType* Data
)

String CRC.

Public function Static

uint32

 

StrCrc_DEPRECATED

(
    const int32 DataLen,
    const CharType* Data
)

String CRC.

Public function Static

uint32

 

Strihash_DEPRECATED

(
    const CharType* Data
)

Case insensitive string hash function.

Public function

uint32

 

Strihash_DEPRECATED

(
    const ANSICHAR* Data
)

Public function

uint32

 

Strihash_DEPRECATED

(
    const WIDECHAR* Data
)

Public function Static

uint32

 

Strihash_DEPRECATED

(
    const int32 DataLen,
    const CharType* Data
)

Case insensitive string hash function.

Public function

uint32

 

Strihash_DEPRECATED

(
    const int32 DataLen,
    const ANSICHAR* Data
)

Public function

uint32

 

Strihash_DEPRECATED

(
    const int32 DataLen,
    const WIDECHAR* Data
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss