There's more...

There are various aliases in the byte order crate to ease your endianness annotation. The BE alias, for Big Endian, and the LE alias, for Little Endian, are useful if you don't want to type as much. On the other hand, if you keep forgetting which endianness is used where, you can use NativeEndian, which sets itself to the default endianness of your operating system, and NetworkEndian, for Big Endian.

To use them, you will have to drag them into scope like this:

use byteorder::{BE, LE, NativeEndian, NetworkEndian};
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.159.223