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

Method reset

block-buffer/src/lib.rs:217–222  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

215 /// Reset buffer by setting cursor position to zero.
216 #[inline(always)]
217 pub fn reset(&mut self) {
218 // SAFETY: 0 is always valid position
219 unsafe {
220 self.set_pos_unchecked(0);
221 }
222 }
223
224 /// Pad remaining data with zeros and return resulting block.
225 #[inline(always)]

Callers 2

pad_with_zerosMethod · 0.45
dropMethod · 0.45

Calls 1

set_pos_uncheckedMethod · 0.45

Tested by

no test coverage detected