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

Method read_byten

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

Decodes `[u8]` from `byte[n]` as described in [RFC4251 § 5]: > A byte represents an arbitrary 8-bit value (octet). Fixed length > data is sometimes represented as an array of bytes, written > `byte[n]`, where n is the number of bytes in the array. Storage for the byte array must be provided as mutable byte slice in order to accommodate `no_alloc` use cases. The [`Decode`] impl on `Vec ` can

(&mut self, out: &'o mut [u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

read_stringMethod · 0.80
decodeMethod · 0.80
decodeMethod · 0.80

Implementers 1

reader.rsssh-encoding/src/reader.rs

Calls 3

read_prefixedMethod · 0.80
remaining_lenMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected