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

Method drain_prefixed

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

Decode a `u32` length prefix, and then drain the length of the body. Upon success, returns the number of bytes drained sans the length of the `u32` length prefix (4-bytes). # Errors - Propagates errors returned from [`Reader::read_prefixed`]. - Propagates errors returned from [`Reader::drain`].

(&mut self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

decode_commentMethod · 0.80
decodeMethod · 0.80

Implementers 1

reader.rsssh-encoding/src/reader.rs

Calls 3

read_prefixedMethod · 0.80
remaining_lenMethod · 0.80
drainMethod · 0.80

Tested by

no test coverage detected