Exemple #1
0
 public void ToArray(ByteSpan destination, bool reverse = false)
 {
     if (destination.Length < Length)
     {
         throw new ArgumentException($"{Length} byte destination is required.");
     }
     Span.CopyTo(destination);
     if (reverse)
     {
         destination.Reverse();
     }
 }