MCPcopy Create free account
hub / github.com/RustCrypto/SSH / drain

Method drain

ssh-encoding/src/reader.rs:97–103  ·  view source on GitHub ↗

Drain the given number of bytes from the reader, discarding them. # Errors Propagates errors returned from [`Reader::read`].

(&mut self, n_bytes: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

drain_prefixedMethod · 0.80
ecdsa_sig_sizeFunction · 0.80

Implementers 1

reader.rsssh-encoding/src/reader.rs

Calls 1

readMethod · 0.80

Tested by

no test coverage detected