You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can pass a hasher where I need a Write, and I'll get the digest of the written bytes. I can also have a reader and std::io::copy into the hasher to get the digest of all read bytes. In both cases, those bytes go into the void, there is nothing of them left except for the hash.
Sometimes, I want to process data and hash it along the way. So it'd be cool to have Read and Write wrappers for hashers that can decorate around any IO and give me the hash while passing the data along.
The text was updated successfully, but these errors were encountered:
Nevertheless, a direct solution to the problem would be appreciated. I'd be willing to help implement, given some guidance on how an acceptable solution would look like.
I can pass a hasher where I need a
Write
, and I'll get the digest of the written bytes. I can also have a reader andstd::io::copy
into the hasher to get the digest of all read bytes. In both cases, those bytes go into the void, there is nothing of them left except for the hash.Sometimes, I want to process data and hash it along the way. So it'd be cool to have
Read
andWrite
wrappers for hashers that can decorate around any IO and give me the hash while passing the data along.The text was updated successfully, but these errors were encountered: