Struct StateHasher
- Namespace
- TDMaker.Core
- Assembly
- TDMaker.Core.dll
Stable FNV-1a value hashing with explicit byte order; never uses runtime object or string hashes.
public struct StateHasher
- Inherited Members
Constructors
StateHasher(ulong)
Creates a hash accumulator with an explicit seed; FNV-1a uses 14695981039346656037UL.
public StateHasher(ulong seed)
Parameters
seedulong
Properties
Value
Current hash value.
public ulong Value { get; }
Property Value
Methods
Add(bool)
Adds a boolean.
public void Add(bool item)
Parameters
itembool
Add(double)
Adds exact IEEE double bits.
public void Add(double item)
Parameters
itemdouble
Add(int)
Adds a signed integer in little-endian order.
public void Add(int item)
Parameters
itemint
Add(long)
Adds a signed long in little-endian order.
public void Add(long item)
Parameters
itemlong
Add(float)
Adds exact IEEE single bits.
public void Add(float item)
Parameters
itemfloat
Add(string)
Adds string length and ordinal UTF-16 characters; null differs from empty.
public void Add(string item)
Parameters
itemstring
Add(ulong)
Adds an unsigned long in little-endian order.
public void Add(ulong item)
Parameters
itemulong
Add(Vec2)
Adds two exact coordinates.
public void Add(Vec2 item)
Parameters
itemVec2