newHashReaderWrapper will hash all reads done through r. When r returns io.EOF the done function will be called with the sum.
(r io.Reader, h hash.Hash, done func(hash []byte))
| 716 | // newHashReaderWrapper will hash all reads done through r. |
| 717 | // When r returns io.EOF the done function will be called with the sum. |
| 718 | func newHashReaderWrapper(r io.Reader, h hash.Hash, done func(hash []byte)) *hashReaderWrapper { |
| 719 | return &hashReaderWrapper{ |
| 720 | r: r, |
| 721 | h: h, |
| 722 | done: done, |
| 723 | } |
| 724 | } |
| 725 | |
| 726 | type hashReaderWrapper struct { |
| 727 | r io.Reader |
no outgoing calls
no test coverage detected