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

Class ResetGuard

block-buffer/src/read.rs:193–193  ·  view source on GitHub ↗

Resets the referenced buffer on drop.

Source from the content-addressed store, hash-verified

191
192/// Resets the referenced buffer on drop.
193struct ResetGuard<'a, BS: BlockSizes>(&'a mut ReadBuffer<BS>);
194
195impl<BS: BlockSizes> Drop for ResetGuard<'_, BS> {
196 fn drop(&mut self) {

Callers 1

write_blockMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected