mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-21 00:00:12 +02:00
Rename & refactor ByteBuf -> SliceBuf
This commit is contained in:
+4
-8
@@ -7,8 +7,8 @@ extern crate byteorder;
|
||||
|
||||
// Implementation in here
|
||||
mod imp;
|
||||
|
||||
pub mod alloc;
|
||||
// TODO: delete
|
||||
mod alloc;
|
||||
|
||||
pub use imp::buf::{Buf, MutBuf};
|
||||
pub use imp::bytes::Bytes;
|
||||
@@ -25,15 +25,11 @@ pub mod buf {
|
||||
WriteExt,
|
||||
Fmt,
|
||||
};
|
||||
|
||||
pub use imp::buf::slice_buf::SliceBuf;
|
||||
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;
|
||||
}
|
||||
|
||||
use std::u32;
|
||||
|
||||
const MAX_CAPACITY: usize = u32::MAX as usize;
|
||||
|
||||
Reference in New Issue
Block a user