Module read
Traits
- FromEndianBytes Trait for types that can be converted from a fixed-size byte array with a specified endianness
-
Read
The
Readtrait allows for reading bytes from a source.
Functions
-
append_to_string
Several
read_to_stringandread_linemethods in the standard library will append data into aStringbuffer, but we need to be pretty careful when doing this. The implementation will just call.as_mut_vec()and then delegate to a byte-oriented reading method, but we must ensure that when returning we never leavebufin a state such that it contains invalid UTF-8 in its bounds. - default_read_buf
- default_read_buf_exact
- default_read_exact
- default_read_to_end Here we must serve many masters with conflicting goals:
- default_read_to_string
- default_read_vectored
-
read_to_string
Reads all bytes from a [reader][Read] into a new
String.
Constants
- DEFAULT_BUF_SIZE Bare metal platforms usually have very small amounts of RAM (in the order of hundreds of KB)