Wy Rand Engine.State Size Property
Gets the number of bytes required to save/load this engine's state.
Definition
Namespace: Numerics.NET.Random.Engines
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
The exact number of bytes required for state serialization. This value is stable for a given engine type.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
public int StateSize {
get;
}Property Value
Int32The exact number of bytes required for state serialization. This value is stable for a given engine type.
Implements
IStateful.StateSizeRemarks
This is the exact serialized size. When calling SaveState(Span<Byte>) or LoadState(ReadOnlySpan<Byte>), the provided span must have a length of at least StateSize bytes.