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§
- bytes
- Reinterpret values as byte slices and byte slices as values unsafely.
Traits§
- Read
Endian - A
std::io::Readinput stream which supports reading any primitive values from bytes. Will decode the values from either little endian or big endian, as desired. - Read
Primitive - Offers a prettier versions of reading a primitive number.
- Write
Endian - A
std::io::Writeoutput stream which supports writing any primitive values as bytes. Will encode the values to be either little endian or big endian, as desired.