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

Method read_string

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

Decode a `string` as described in [RFC4251 § 5]: > Arbitrary length binary string. Strings are allowed to contain > arbitrary binary data, including null characters and 8-bit > characters. They are stored as a uint32 containing its length > (number of bytes that follow) and zero (= empty string) or more > bytes that are the value of the string. Terminating null > characters are not used. > > S

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

decodeMethod · 0.80

Implementers 1

reader.rsssh-encoding/src/reader.rs

Calls 1

read_bytenMethod · 0.80

Tested by

no test coverage detected