| commit | 5be204553fe5b18697c86a58ded3310428d047ba | [log] [tgz] |
|---|---|---|
| author | Andrew Gallant <jamslam@gmail.com> | Wed Feb 04 20:57:56 2015 -0500 |
| committer | Andrew Gallant <jamslam@gmail.com> | Wed Feb 04 20:57:56 2015 -0500 |
| tree | ef0c4efd30c144ad6680fbf5373fedf455a139c2 | |
| parent | 316330556bc255ac178f5223646ae4483470b845 [diff] |
Leave some breadcrumbs.
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.