Table of Contents

Interface ICodeHashGenerator

Namespace
CodeStage.AntiCheat.Genuine.CodeHash
Assembly
Build.dll

CodeHashGenerator interface to make it easier to use it through the Instance.

public interface ICodeHashGenerator

Properties

IsBusy

Indicates if hash generation is currently in process.

bool IsBusy { get; }

Property Value

bool

LastResult

Stores previously calculated result. Can be null if Generate() wasn't called yet or if it was called but calculation is still in process.

HashGeneratorResult LastResult { get; }

Property Value

HashGeneratorResult
See Also

Methods

Generate(int)

Call to start current runtime code hash generation. Automatically adds instance to the scene if necessary.

ICodeHashGenerator Generate(int maxThreads = 1)

Parameters

maxThreads int

Threads to use while hashing files. Use Environment.ProcessorCount to use all cores.

Returns

ICodeHashGenerator

GenerateAsync(int)

Awaitable version of Generate(). Allows awaiting for the generation result.

Task<HashGeneratorResult> GenerateAsync(int maxThreads = 1)

Parameters

maxThreads int

Threads to use while hashing files. Use Environment.ProcessorCount to use all cores.

Returns

Task<HashGeneratorResult>