KernelAPI reference
Class StepHash
Namespace: MicroEngine.Kernel
Assembly: MicroEngine.Kernel.dll
Guide: Modules and the frame schedule
The state hash after one fixed step.
public sealed record StepHash : IEquatable<StepHash>Inheritance
Implements
Constructors
StepHash(long, ulong, IReadOnlyList<SectionHash>)
The state hash after one fixed step.
public StepHash(long Update, ulong Hash, IReadOnlyList<SectionHash> Sections)Parameters
Update long
The update the step ended (1 for the first).
Hash ulong
The hash of the whole state.
Sections IReadOnlyList<SectionHash>
The hash of each section, in order; empty unless the trace asked for them (Sections).
Properties
Hash
The hash of the whole state.
public ulong Hash { get; init; }Property Value
Sections
The hash of each section, in order; empty unless the trace asked for them (Sections).
public IReadOnlyList<SectionHash> Sections { get; init; }Property Value
Update
The update the step ended (1 for the first).
public long Update { get; init; }Property Value
Methods
<Clone>$()
public StepHash <Clone>$()Returns
Deconstruct(out long, out ulong, out IReadOnlyList<SectionHash>)
public void Deconstruct(out long Update, out ulong Hash, out IReadOnlyList<SectionHash> Sections)Parameters
Update long
Hash ulong
Sections IReadOnlyList<SectionHash>
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object?
Returns
Equals(StepHash?)
public bool Equals(StepHash? other)Parameters
other StepHash?
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(StepHash?, StepHash?)
public static bool operator ==(StepHash? left, StepHash? right)Parameters
left StepHash?
right StepHash?
Returns
operator !=(StepHash?, StepHash?)
public static bool operator !=(StepHash? left, StepHash? right)Parameters
left StepHash?
right StepHash?