示例#1
0
 /// <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();
 }
示例#2
0
 /// <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();
 }