October3d55/M/LowEntryExtStdLib/Source/LowEntryExtendedStandardLib.../Public/Classes/LowEntryHashingPearsonLibra...

19 lines
428 B
C++

// Copyright Low Entry. Apache License, Version 2.0.
#pragma once
#include "CoreMinimal.h"
class ULowEntryHashingPearsonLibrary
{
private:
const static uint8 pearson[256];
public:
static TArray<uint8> Hash(const TArray<uint8>& Bytes, const int32 HashLength) { return Hash(Bytes, 0, 0xf7777777, HashLength); }
static TArray<uint8> Hash(const TArray<uint8>& Bytes, int32 Index, int32 Length, const int32 HashLength);
};