Exemple #1
0
 /// <summary>
 /// Creates an instance of <see cref="Blake3Stream"/> using the specified backend stream.
 /// </summary>
 /// <param name="backendStream"></param>
 /// <param name="dispose">A boolean that indicates if this stream will dispose the backend stream. Default is true.</param>
 public Blake3Stream(Stream backendStream, bool dispose = true)
 {
     _stream  = backendStream ?? throw new ArgumentNullException(nameof(backendStream));
     _dispose = dispose;
     _hasher  = Hasher.New();
 }