MCPcopy Create free account
hub / github.com/RustCrypto/utils / ResetGuard

Class ResetGuard

block-buffer/src/lib.rs:445–445  ·  view source on GitHub ↗

Resets the referenced buffer on drop.

Source from the content-addressed store, hash-verified

443
444/// Resets the referenced buffer on drop.
445struct ResetGuard<'a, BS: BlockSizes, K: BufferKind>(&'a mut BlockBuffer<BS, K>);
446
447impl<BS: BlockSizes, K: BufferKind> Drop for ResetGuard<'_, BS, K> {
448 fn drop(&mut self) {

Callers 2

digest_blocksMethod · 0.70
digest_padMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected