UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
uLang::CCRC16 Class Reference

#include <CRC.h>

Static Public Member Functions

static ULANG_FORCEINLINE uint16_t Generate (const uint8_t *Begin, const uint8_t *End, uint16_t PrevCRC=0)
 

Detailed Description

Helper class for computing a 16 bit CRC We are using the CRC-16-CCITT polynomial (0x1021), but are using a bit reversed algorithm akin to CRC32 and CRC64 algorithms which saves one bit shift

Member Function Documentation

◆ Generate()

static ULANG_FORCEINLINE uint16_t uLang::CCRC16::Generate ( const uint8_t Begin,
const uint8_t End,
uint16_t  PrevCRC = 0 
)
inlinestatic

Generate CRC16 from a string of bytes You can compute the CRC of two concatenated strings by computing the CRC of the first string, then passing the result into the PrevCRC argument when computing the CRC of the second string


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