Documentation ¶
Overview ¶
Package cchash provides a concurrent hasher for implementers of io.ReaderAt with a known size, such as os.File.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashFactory ¶
HashFactory should return a new and usable hash.Hash upon each call.
type Interface ¶
type Interface interface { // Hash computes the hash of the bytes read from the source io.ReaderAt. Hash() error // Sum appends the current hash to b and returns the resulting slice. // It does not change the underlying hash state. Sum(b []byte) []byte // Hash computes the hash of the bytes read from the source io.ReaderAt. Size() int }
Interface represents a type that can concurrently compute a hash.
Click to show internal directories.
Click to hide internal directories.