ReaderHash32Proxy proxies a reader and produces a `Hash32` sum from the read bytes.
type ReaderHash32Proxy struct {
// contains filtered or unexported fields
}
func NewReaderHash32Proxy(r io.Reader, h hash.Hash32) *ReaderHash32Proxy
NewReaderHash32Proxy returns a new `ReaderHash32Proxy` struct.
func (rhp *ReaderHash32Proxy) Read(b []byte) (n int, err error)
Read proxies the read to the underlying `Reader` while also pushing the bytes through the `Hash32` struct.
func (rhp *ReaderHash32Proxy) Sum32() uint32
Sum32 returns the accumulated hash value.
ReaderHashProxy proxies a reader and produces a `Hash` sum from the read bytes.
type ReaderHashProxy struct {
// contains filtered or unexported fields
}
func NewReaderHashProxy(r io.Reader, h hash.Hash) *ReaderHashProxy
NewReaderHashProxy returns a new `ReaderHashProxy` struct.
func (rhp *ReaderHashProxy) Read(b []byte) (n int, err error)
Read proxies the read to the underlying `Reader` while also pushing the bytes through the `Hash` struct.
func (rhp *ReaderHashProxy) Sum() []byte
Sum returns the accumulated hash value.