Trait object::pod::WritableBuffer[][src]

pub trait WritableBuffer {
    fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn reserve(&mut self, additional: usize) -> Result<(), ()>;
fn resize(&mut self, new_len: usize, value: u8);
fn extend(&mut self, val: &[u8]); }
Expand description

Trait for writable buffer.

Required methods

Returns position/offset for data to be written at.

Returns true if buffer contains no data.

Reserves specified number of bytes in the buffer.

Resizes buffer to the specified length, fills new items with the specified value.

Extends buffer with the specified slice of bytes.

Implementors