RandomSource<TGenerator>.SaveState Method

Saves the generator's state to the destination span in a stable little-endian format.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public void SaveState(
	Span<byte> destination
)

Parameters

destination  Span<Byte>
The destination span where state bytes will be written. Must have a length of at least StateSize.

Implements

IStateful.SaveState(Span<Byte>)

Exceptions

ArgumentException Thrown when destination.Length < StateSize.

See Also