ChaChaEngine.StateSize 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#
public int StateSize {
	get;
 }

Property Value

Int32
The exact number of bytes required for state serialization. This value is stable for a given engine type.

Implements

IStateful.StateSize

Remarks

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.

See Also