/// <summary> /// Construct a new <see cref="Source"/>, using the <paramref name="Result"/> /// </summary> /// <param name="Result">A <see cref="Result"/> to use as the source</param> public Source(Result Result) { Buffer = Result.AsSpan(); Position = 0; HashCode = RNG.Next(); }
/// <summary> /// Construct a new <see cref="Source"/> from the specified <paramref name="Span"/> /// </summary> /// <param name="Span">A <see cref="ReadOnlySpan{T}"/> to use as a source</param> public Source(ReadOnlySpan <Char> Span) { Buffer = Span; Position = 0; HashCode = RNG.Next(); }