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

Method reset

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

Reset buffer into exhausted state.

(&mut self)

Source from the content-addressed store, hash-verified

127
128 /// Reset buffer into exhausted state.
129 pub fn reset(&mut self) {
130 self.buffer[0] = BS::U8;
131 }
132
133 /// Write remaining data inside buffer into `buf`, fill remaining space
134 /// in `buf` with blocks generated by `gen_block`, and save leftover data

Callers 1

dropMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected