Table of Contents

Method b3Hash

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3Hash(uint, byte*, int)

Computes a djb2 hash, used for determinism testing.

public static extern uint b3Hash(uint hash, byte* data, int count)

Parameters

hash uint

The running hash. Seed with Box3D.Native.Constants.B3_HASH_INIT.

data byte*

The bytes to hash.

count int

The number of bytes.

Returns

uint

The updated hash.