Huge overhaul of bytes

* Get rid of `ByteStr` trait
* `Bytes` is not a concrete type
* Add `BlockBuf`
* Delete lots of cruft
* Performance work
This commit is contained in:
Carl Lerche
2016-08-10 15:45:31 -07:00
parent b2efe63c70
commit 04e0ac75e2
31 changed files with 1630 additions and 1653 deletions
+9 -5
View File
@@ -4,17 +4,21 @@ extern crate bytes;
extern crate rand;
extern crate byteorder;
// == Buf
mod test_append;
mod test_buf;
mod test_buf_fill;
mod test_buf_take;
mod test_byte_buf;
mod test_bytes;
mod test_pool;
mod test_ring;
// == Bytes
mod test_bytes;
mod test_rope;
mod test_seq_byte_str;
mod test_small_byte_str;
mod test_seq;
mod test_small;
// == Pool
mod test_pool;
fn gen_bytes(n: usize) -> Vec<u8> {
(0..n).map(|_| random()).collect()