Trait vortex_buffer::io_buf::IoBuf
source · pub unsafe trait IoBuf: Unpin + 'static {
// Required methods
fn read_ptr(&self) -> *const u8;
fn bytes_init(&self) -> usize;
// Provided methods
fn as_slice(&self) -> &[u8] ⓘ { ... }
fn slice(self, begin: usize, end: usize) -> Slice<Self>
where Self: Sized { ... }
}
Required Methods§
sourcefn bytes_init(&self) -> usize
fn bytes_init(&self) -> usize
Number of initialized bytes.