Files
bytes/src/lib.rs
T

25 lines
481 B
Rust
Raw Normal View History

2015-01-30 00:04:33 -08:00
#![crate_name = "bytes"]
#![deny(warnings)]
2016-08-10 15:45:31 -07:00
#[macro_use]
extern crate log;
2016-08-31 12:07:44 -07:00
extern crate byteorder;
2016-08-10 15:45:31 -07:00
mod buf;
mod bytes;
2015-04-07 23:40:00 -07:00
pub mod alloc;
2016-09-23 07:53:17 -07:00
pub use buf::{Buf, MutBuf, Source, Sink, Reader, ReadExt, Writer, WriteExt, Fmt};
2016-08-10 15:45:31 -07:00
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;
const MAX_CAPACITY: usize = u32::MAX as usize;