aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-12-30Fix up CI, test no_std.Andrew Gallant
2016-12-30Prepare for 1.0, switch to docs.rs.Andrew Gallant
Fixes #57
2016-05-30Replacing std size_of with core size_of.David Tulig
This allows byteorder to be used in a no_std context.
2016-05-21Fixes undefined behavior reported in #47.Andrew Gallant
Instead of casting pointers, we do a proper unaligned load using copy_nonoverlapping. Benchmarks appear unaffected on Linux x64.
2016-05-02Enable usage in no_std contextsCorey Richardson
2016-03-24Add NetworkEndian aliasBrian Campbell
Network byte order is defined by [RFC 1700][1] to be big-endian, and is referred to in several protocol specifications. This type is an alias of BigEndian. This alias can be used to make it more clear why you're using a particular byte order in code, if you are implementing a specification that refers to network byte order. [1]: https://tools.ietf.org/html/rfc1700
2016-03-11remove unnecessary write_all implementationLuke Steensen
2016-03-11remove custom error type and read_fullLuke Steensen
Rust 1.6 stabilized `read_exact`, which gives us the same functionality without having to wrap `std::io::Error`. Removing the custom error type makes this a breaking change, and users will have to replace uses of `byteorder::Error` with `std::io::Error`. [breaking-change]
2015-11-07Fix bug.Andrew Gallant
2015-11-07Add write_{int,uint} to WriteBytesExt trait.Andrew Gallant
2015-11-07Add write_{int,uint}.Andrew Gallant
Since this adds a new required method on the `ByteOrder` trait, this is a breaking change. This should only break crates that have custom implementations of the `ByteOrder` trait. To fix it, add an implementation for `write_uint`. [breaking-change]
2015-11-06Allow builds without std dependencyŁukasz Jan Niemier
2015-07-05Add #[inline] to allow for cross-crate inliningCesar Eduardo Barros
2015-05-20Move benchmarks to separate directory.Andrew Gallant
So we can run tests on stable/beta.
2015-05-20Change "Task failure occurs when" to "Panics when"Geoffrey Thomas
The term "task failure" is obsolete (see RFC 221).
2015-04-24Improvements after being poked by @joshtriplett. Thanks!Andrew Gallant
1. The syntax <T as ByteOrder>::foo() is no longer needed. The docs/code has been updated to just use T::foo(). 2. An extraneous `copy_nonoverlapping` was removed in some cases. Benchmarks show no difference (probably due to llvm being smart to elide it in the first place). 3. A regression test was added to ensure that the `uint` case for little endian decoding remains correct even when decoding a smaller integer from a larger buffer.
2015-04-22Fix weird ARM bug for @romanb.Andrew Gallant
2015-04-02Update for stabilized io::ErrorAnders Kaseorg
As per https://github.com/rust-lang/rust/pull/23919, the last argument was removed from Error::new, and the Clone, Eq, and PartialEq traits were removed from Error. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-04-02Replace FromError with FromAnders Kaseorg
As per https://github.com/rust-lang/rust/pull/23879. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-04-01rustupAndrew Gallant
fixes #22
2015-03-25rustup. Unfortunately, revert the dependency on bswap becauseAndrew Gallant
I need a working crate. Revert "Replaced read_num_bytes!/write_num_bytes! with rust-bswap decode/encode functions." This reverts commit 718f3a8e0981e88189fbd7c35f3ed92104c32bae. # Conflicts: # Cargo.toml # src/lib.rs
2015-03-24Fix quickcheck ranges.Andrew Gallant
2015-03-19Add NativeEndian typeZachary Dremann
NativeEndian is simply a type alias to LittleEndian/BigEndian.
2015-03-15rustupAndrew Gallant
This removes support for `std::old_io` since it has been deprecated.
2015-03-14Expand impl for unsized readers and writersrkjnsn
2015-03-10rustup and 80 colsAndrew Gallant
2015-03-08rustupAndrew Gallant
2015-03-07Merge remote-tracking branch 'andydude/master'Andrew Gallant
# Conflicts: # Cargo.toml
2015-03-06MergedAndrew Robbins
2015-03-06Retry on interrupt.Steven Allen
This is what Read::read_to_end does.
2015-02-28Remove Sized bound. Close #13blackbeam
2015-02-26Removed Sized requirementAndrew Robbins
2015-02-26Fixed tests for strict assertionsAndrew Robbins
2015-02-26Merge branch 'rust-22776' of git://github.com/romanb/byteorderAndrew Gallant
2015-02-26rustupAndrew Gallant
2015-02-25Unintrusive workaround for rust-lang/rust#22776.Roman S. Borschel
2015-02-25Replaced read_num_bytes!/write_num_bytes! with rust-bswap decode/encode ↵Andrew Robbins
functions.
2015-02-23Implement `std::error::FromError<byteorder::Error>` for `std::io::Error`blackbeam
2015-02-22Update crate documentationFenhl
Seems like this was missed.
2015-02-21Adds an `Error` type for handling unexpected EOF.Andrew Gallant
This changes the return type of the various `read` and `write` extension methods, so it's a [breaking-change]
2015-02-20Hint at which trait is which.Andrew Gallant
2015-02-20Support std::io.Andrew Gallant
2015-02-20Add feature old_io to silence warningsCody P Schafer
2015-02-20mark ByteOrder trait with MarkerTraitCody P Schafer
2015-02-20The "us" suffix was changed to "usize"Cody P Schafer
2015-02-19rustupAndrew Gallant
2015-02-15Add `read_uint` and `read_int`blackbeam
2015-02-05slight style tweakAndrew Gallant
2015-02-05remove 'rand' featureAndrew Gallant
2015-02-05Floating point, docs and more tests.Andrew Gallant