[][src]Trait genio::bufio::AsRawBuf

pub trait AsRawBuf {
    fn as_raw_buf(&mut self) -> *mut [u8];
fn len(&self) -> usize; }

Represents type that can serve as (possibly uninitialized) buffer

Required methods

fn as_raw_buf(&mut self) -> *mut [u8]

Returns a pointer to the buffer. It may point to uninitialized data. The pointer must not outlive the buffer.

fn len(&self) -> usize

Returns the length of the buffer.

Loading content...

Implementors

impl<T: AsRef<[u8]> + AsMut<[u8]>> AsRawBuf for T[src]

Loading content...