commit | 5c58ca0523f512146786aa96f2aa473eaeeb128c | [log] [tgz] |
---|---|---|
author | Andrew Gallant <jamslam@gmail.com> | Thu Feb 05 17:13:01 2015 -0500 |
committer | Andrew Gallant <jamslam@gmail.com> | Thu Feb 05 17:13:01 2015 -0500 |
tree | 6caa5b0a72765f987f8a6a0be38bdf1a67022328 | |
parent | 2e91c36d0d16bf95aa23e0c1ee2dd696f79d876f [diff] |
0.2.1
Convenience functions for reading and writing integers/floats in various byte orders such as big-endian and little-endian. This is meant to replace the old methods defined on the standard library Reader
and Writer
traits.
Work in progress.
f32
and f64
support. (trivial)Use the rustc-serialize
infrastructure, but it is known to be Not Fast. So I‘m skeptical of how useful it would be. Basically, it would let you say something like: let n: u32 = rdr.decode::<BigEndian>()
as opposed to let n = rdr.read_u32::<BigEndian>()
. Doesn’t seem like an obvious win.