byteorder icon indicating copy to clipboard operation
byteorder copied to clipboard

Rust library for reading/writing numbers in big-endian and little-endian.

Results 19 byteorder issues
Sort by recently updated
recently updated
newest added

Closes #176. I hope I did not miss to document any important change here.

Current version of byteorder is 1.4.3, but the changelog ends with 1.3.4: https://github.com/BurntSushi/byteorder/blob/abffade8232229db557e0a30c395963071624b2b/CHANGELOG.md It would be nice if someone can add the changes from the more recent versions. :)

I write some kind of protocol parser and I use next code to read protocol data: ```rust reader.read_u32_into::(&mut buffer); ``` I would like to use the same logic for writer:...

enhancement
help wanted

This is blocked on https://github.com/BurntSushi/quickcheck/issues/267

enhancement

This was discussed in #155, and makes my life much easier when serializing big vectors. For now I only implemented `write_u32_from`, but if this looks OK I can go implement...

The recently-added standard library endian conversion functions like [`from_be_bytes`](https://doc.rust-lang.org/std/primitive.u16.html#method.from_be_bytes) and [`to_be_bytes`](https://doc.rust-lang.org/std/primitive.u16.html#method.to_be_bytes) operate on arrays by value rather than slices by reference, which can provide better type safety in some cases....

From a discussion on `#rust-beginners` there seems to be a need for `ByteOrder` implementation that dispatches to LE/BE based on runtime information. Essentially something like this: ```rust enum Endianess {...

I believe I'm doing this correctly. I'm trying to create an f64 from 4 u16s. ```rust extern crate byteorder; use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt}; // hello fn main() { let mut...

The 1.1.0 release [introduced](https://github.com/BurntSushi/byteorder/commit/ef7f25767cb199a5738b2bc530d9a2a9a49abd7f) slice methods for the `ReadBytesExt` trait (`read_*_into`). It would be useful to have the corresponding write methods for the `WriteBytesExt` trait.