endi
Yet another endian handling library for Rust. The approach is very similar to that of
byteordered
crate with its Endianness
enum, except that endi
is much simpler and doesn't
depend on byteorder
(or anything at all).
Usage
The main type is Endian
enum which can be either Big
or Little
. It provides various
methods to read and write integers of different sizes and endianness.
use ;
let mut buf = ;
for endian in
nostd
You can disable std
by disabling the default std
feature. This will disable the ReadBytes
and
WriteBytes
traits.