Expand description
Easily write primitives and slices of primitives to
binary std::io::Write
streams and easily read from binary std::io::Read
streams.
Also contains the unsafe bytes
module for reinterpreting values as byte slices and vice versa.
Modules
- Reinterpret values as byte slices and byte slices as values unsafely.
Traits
- A
std::io::Read
input stream which supports reading any primitive values from bytes. Will decode the values from either little endian or big endian, as desired. - Offers a prettier versions of reading a primitive number.
- A
std::io::Write
output stream which supports writing any primitive values as bytes. Will encode the values to be either little endian or big endian, as desired.