bincode-1.0.0-alpha7 has been yanked.
bincode
is a crate for encoding and decoding using a tiny binary
serialization strategy.
There are simple functions for encoding to Vec<u8>
and decoding from
&[u8]
, but the meat of the library is the encode_into
and decode_from
functions which respectively allow encoding into a std::io::Writer
and decoding from a std::io::Buffer
.
Modules
Until "default type parameters" lands, we have an extra module called endian_choice
that duplicates all of the core bincode functionality but with the option to choose
which endianness the integers are encoded using.
The default endianness is little.
Using Basic Functions
extern crate bincode;
use ;