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-07-20 13:27:41 +02:00
|
|
|
extern crate stable_heap;
|
|
|
|
|
|
2015-04-07 23:40:00 -07:00
|
|
|
pub mod alloc;
|
2015-09-25 09:43:58 -07:00
|
|
|
pub mod buf;
|
|
|
|
|
pub mod str;
|
2015-04-07 23:40:00 -07:00
|
|
|
|
|
|
|
|
pub use buf::{
|
|
|
|
|
Buf,
|
|
|
|
|
MutBuf,
|
|
|
|
|
ByteBuf,
|
|
|
|
|
MutByteBuf,
|
|
|
|
|
RingBuf,
|
|
|
|
|
ROByteBuf,
|
2015-07-28 12:51:24 -07:00
|
|
|
Take,
|
2016-06-08 14:48:49 -07:00
|
|
|
ReadExt,
|
|
|
|
|
WriteExt,
|
2015-04-07 23:40:00 -07:00
|
|
|
};
|
|
|
|
|
pub use str::{
|
|
|
|
|
ByteStr,
|
|
|
|
|
Bytes,
|
|
|
|
|
Rope,
|
|
|
|
|
RopeBuf,
|
|
|
|
|
SeqByteStr,
|
|
|
|
|
SmallByteStr,
|
|
|
|
|
SmallByteStrBuf,
|
|
|
|
|
ToBytes,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
use std::u32;
|
2015-02-09 09:04:18 -08:00
|
|
|
|
|
|
|
|
const MAX_CAPACITY: usize = u32::MAX as usize;
|