Files
bytes/src/lib.rs
T

38 lines
689 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-09-23 12:05:32 -07:00
// Implementation in here
mod imp;
2016-08-10 15:45:31 -07:00
2015-04-07 23:40:00 -07:00
pub mod alloc;
2016-09-23 12:05:32 -07:00
pub use imp::buf::{Buf, MutBuf};
pub use imp::bytes::Bytes;
pub mod buf {
pub use imp::buf::{
Source,
Sink,
Reader,
ReadExt,
Writer,
WriteExt,
Fmt,
};
pub use imp::buf::append::AppendBuf;
pub use imp::buf::block::{BlockBuf, BlockBufCursor};
pub use imp::buf::byte::{ByteBuf, MutByteBuf};
pub use imp::buf::ring::RingBuf;
pub use imp::buf::take::Take;
pub use imp::bytes::BytesBuf;
}
2015-04-07 23:40:00 -07:00
use std::u32;
const MAX_CAPACITY: usize = u32::MAX as usize;