UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FBuzHash Struct Reference

#include <BuzHash.h>

Public Member Functions

UE_FORCEINLINE_HINT void Reset ()
 
UE_FORCEINLINE_HINT uint32 Get () const
 
UE_FORCEINLINE_HINT uint64 GetWindowSize () const
 
void Add (uint8 X)
 
UE_FORCEINLINE_HINT void Add (FMemoryView View)
 
void Add (const uint8 *Data, uint64 Size)
 
void Sub (uint8 X)
 

Detailed Description

Rolling hash function. Allows efficient computation of the hash of a window into a block of data, which can be moved through the data byte by byte.

Member Function Documentation

◆ Add() [1/3]

void FBuzHash::Add ( const uint8 Data,
uint64  Size 
)
inline

Adds an array of bytes to the start of the window.

◆ Add() [2/3]

UE_FORCEINLINE_HINT void FBuzHash::Add ( FMemoryView  View)
inline

Adds an array of bytes to the start of the window.

◆ Add() [3/3]

void FBuzHash::Add ( uint8  X)
inline

Appends a byte to the start of the window and updates the hash.

◆ Get()

UE_FORCEINLINE_HINT uint32 FBuzHash::Get ( ) const
inline

Gets the current hash value.

◆ GetWindowSize()

UE_FORCEINLINE_HINT uint64 FBuzHash::GetWindowSize ( ) const
inline

Gets the size of the window.

◆ Reset()

UE_FORCEINLINE_HINT void FBuzHash::Reset ( )
inline

Reset the state of the hasher.

◆ Sub()

void FBuzHash::Sub ( uint8  X)
inline

Removes a byte from the back of the sliding window and updates the hash.


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