[][src]Trait kompact::net::buffer::Chunk

pub trait Chunk: Send {
    fn as_mut_ptr(&mut self) -> *mut u8;
fn len(&self) -> usize; }

Required methods for a Chunk

Required methods

fn as_mut_ptr(&mut self) -> *mut u8

Returns a mutable pointer to the underlying buffer

fn len(&self) -> usize

Returns the length of the chunk

Loading content...

Implementors

Loading content...