Data.HashFunction 3.1.1
DHF
|
Common interface to non-cryptographic hash functions that can be computed over a stream of data without buffering. More...
Public Member Functions | |
IBlockTransformer | CreateBlockTransformer () |
Creates a new transformer that will process data and hold the internal state using this hash function's algorithm. | |
IHashValue | ComputeHash (Stream data) |
Computes hash value for given stream. | |
IHashValue | ComputeHash (Stream data, CancellationToken cancellationToken) |
Computes hash value for given stream. | |
Task< IHashValue > | ComputeHashAsync (Stream data) |
Computes hash value for given stream asynchronously. | |
Task< IHashValue > | ComputeHashAsync (Stream data, CancellationToken cancellationToken) |
Computes hash value for given stream asynchronously. | |
Public Member Functions inherited from Data.HashFunction.IHashFunction | |
IHashValue | ComputeHash (byte[] data) |
Computes hash value for given byte array. | |
IHashValue | ComputeHash (byte[] data, CancellationToken cancellationToken) |
Computes hash value for given byte array. | |
IHashValue | ComputeHash (byte[] data, int offset, int count) |
Computes hash value for given byte array. | |
IHashValue | ComputeHash (byte[] data, int offset, int count, CancellationToken cancellationToken) |
Computes hash value for given byte array. | |
IHashValue | ComputeHash (ArraySegment< byte > data) |
Computes hash value for given array segment. | |
IHashValue | ComputeHash (ArraySegment< byte > data, CancellationToken cancellationToken) |
Computes hash value for given array segment. | |
Additional Inherited Members | |
Properties inherited from Data.HashFunction.IHashFunction | |
int | HashSizeInBits [get] |
Size of produced hash, in bits. | |
Common interface to non-cryptographic hash functions that can be computed over a stream of data without buffering.
IHashValue Data.HashFunction.IStreamableHashFunction.ComputeHash | ( | Stream | data | ) |
Computes hash value for given stream.
data | Stream of data to hash. |
ArgumentNullException | data |
ArgumentException | Stream must be readable.;data |
ArgumentException | Stream must be seekable for this type of hash function.;data |
Implemented in Data.HashFunction.Core.StreamableHashFunctionBase.
IHashValue Data.HashFunction.IStreamableHashFunction.ComputeHash | ( | Stream | data, |
CancellationToken | cancellationToken ) |
Computes hash value for given stream.
data | Stream of data to hash. |
cancellationToken | A CancellationToken to observe while calculating the hash value. |
ArgumentNullException | data |
ArgumentException | Stream must be readable.;data |
ArgumentException | Stream must be seekable for this type of hash function.;data |
TaskCanceledException | The cancellationToken was canceled. |
Implemented in Data.HashFunction.Core.StreamableHashFunctionBase.
Task< IHashValue > Data.HashFunction.IStreamableHashFunction.ComputeHashAsync | ( | Stream | data | ) |
Computes hash value for given stream asynchronously.
data | Stream of data to hash. |
All stream IO is done via ReadAsync.
ArgumentNullException | data |
ArgumentException | Stream must be readable.;data |
ArgumentException | Stream must be seekable for this type of hash function.;data |
Implemented in Data.HashFunction.Core.StreamableHashFunctionBase.
Task< IHashValue > Data.HashFunction.IStreamableHashFunction.ComputeHashAsync | ( | Stream | data, |
CancellationToken | cancellationToken ) |
Computes hash value for given stream asynchronously.
data | Stream of data to hash. |
cancellationToken | A CancellationToken to observe while calculating the hash value. |
All stream IO is done via ReadAsync.
ArgumentNullException | data |
ArgumentException | Stream must be readable.;data |
ArgumentException | Stream must be seekable for this type of hash function.;data |
TaskCanceledException | The cancellationToken was canceled. |
Implemented in Data.HashFunction.Core.StreamableHashFunctionBase.
IBlockTransformer Data.HashFunction.IStreamableHashFunction.CreateBlockTransformer | ( | ) |
Creates a new transformer that will process data and hold the internal state using this hash function's algorithm.
Implemented in Data.HashFunction.BernsteinHash.BernsteinHash_Implementation, Data.HashFunction.BernsteinHash.ModifiedBernsteinHash_Implementation, Data.HashFunction.Blake2.Blake2B_Implementation, Data.HashFunction.BuzHash.BuzHash_Implementation, Data.HashFunction.Core.StreamableHashFunctionBase, Data.HashFunction.CRC.CRC_Implementation, Data.HashFunction.ELF64.ELF64_Implementation, Data.HashFunction.FNV.FNV1_Implementation, Data.HashFunction.FNV.FNV1a_Implementation, Data.HashFunction.Jenkins.JenkinsLookup2_Implementation, Data.HashFunction.Jenkins.JenkinsOneAtATime_Implementation, Data.HashFunction.MetroHash.MetroHash128_Implementation, Data.HashFunction.MetroHash.MetroHash64_Implementation, Data.HashFunction.MurmurHash.MurmurHash3_Implementation, Data.HashFunction.Pearson.Pearson_Implementation, Data.HashFunction.SpookyHash.SpookyHashV1_Implementation, Data.HashFunction.SpookyHash.SpookyHashV2_Implementation, and Data.HashFunction.xxHash.xxHash_Implementation.