2015-01-30 00:04:33 -08:00
|
|
|
#![crate_name = "bytes"]
|
2015-04-08 10:51:52 -07:00
|
|
|
#![deny(warnings)]
|
2015-02-09 09:04:18 -08:00
|
|
|
|
2016-08-10 15:45:31 -07:00
|
|
|
#[macro_use]
|
|
|
|
|
extern crate log;
|
|
|
|
|
|
|
|
|
|
mod buf;
|
|
|
|
|
mod bytes;
|
|
|
|
|
|
2015-04-07 23:40:00 -07:00
|
|
|
pub mod alloc;
|
|
|
|
|
|
2016-08-10 15:45:31 -07:00
|
|
|
pub use buf::{Buf, MutBuf, Source, Sink, ReadExt, WriteExt, Fmt};
|
|
|
|
|
pub use buf::append::AppendBuf;
|
2016-08-11 01:36:16 -07:00
|
|
|
pub use buf::block::{BlockBuf, BlockBufCursor};
|
2016-08-10 15:45:31 -07:00
|
|
|
pub use buf::byte::{ByteBuf, MutByteBuf};
|
|
|
|
|
pub use buf::ring::RingBuf;
|
|
|
|
|
pub use buf::take::Take;
|
|
|
|
|
pub use bytes::Bytes;
|
2015-04-07 23:40:00 -07:00
|
|
|
|
|
|
|
|
use std::u32;
|
2015-02-09 09:04:18 -08:00
|
|
|
|
|
|
|
|
const MAX_CAPACITY: usize = u32::MAX as usize;
|