Struct basic_dsp_vector::SingleBuffer
[−]
[src]
pub struct SingleBuffer<T> where T: RealNumber { /* fields omitted */ }
A buffer which stores a single vector and never shrinks.
Methods
impl<T> SingleBuffer<T> where T: RealNumber
[src]
fn new() -> SingleBuffer<T>
Creates a new buffer which is ready to be passed around.
fn with_capacity(len: usize) -> SingleBuffer<T>
Creates a new buffer which is ready to be passed around.
Trait Implementations
impl<T> Buffer<Vec<T>, T> for SingleBuffer<T> where T: RealNumber
[src]
fn get(&mut self, len: usize) -> Vec<T>
Asks the buffer for new storage. len
is the minimum size the storage needs to provide. S doesn't need to have be initialized with any default value. Read more
fn construct_new(&mut self, len: usize) -> Vec<T>
Asks the buffer for newly created storage which isn't buffered. Read more
fn free(&mut self, storage: Vec<T>)
Returns a storage to the buffer. The buffer isn't required to free it and might just reuse the storage. Read more
fn alloc_len(&self) -> usize
Returns the allocated length of all storage within this buffer.