Trait object::pod::WritableBuffer [−][src]
Trait for writable buffer.
Required methods
fn len(&self) -> usize
[src]
Returns position/offset for data to be written at.
fn is_empty(&self) -> bool
[src]
Returns true if buffer contains no data.
fn reserve(&mut self, additional: usize) -> Result<(), ()>
[src]
Reserves specified number of bytes in the buffer.
fn resize(&mut self, new_len: usize, value: u8)
[src]
Resizes buffer to the specified length, fills new items with the specified value.
fn extend(&mut self, val: &[u8])
[src]
Extends buffer with the specified slice of bytes.