[−][src]Struct csound::BufferPtr
Csound buffer pointer representation. This struct is build up to manipulate directly csound's buffers.
Methods
impl<'a, T> BufferPtr<'a, T>[src]
pub fn get_size(&self) -> usize[src]
Returns
The buffer length
pub fn copy_to_slice(&self, slice: &mut [f64]) -> usize[src]
This method is used to copy data from the csound's buffer into another slice.
Arguments
sliceA mutable slice where the data will be copy
Returns
The number of elements copied into the slice.
pub fn as_slice(&self) -> &[f64][src]
Returns
A slice to the buffer internal data
impl<'a> BufferPtr<'a, Writable>[src]
pub fn as_mut_slice(&mut self) -> &mut [f64][src]
Returns
This buffer pointer as a mutable slice.
pub fn copy_from_slice(&self, slice: &[f64]) -> usize[src]
Trait Implementations
impl<'a, T> AsRef<[f64]> for BufferPtr<'a, T>[src]
impl<'a> AsMut<[f64]> for BufferPtr<'a, Writable>[src]
impl<'a, T> Deref for BufferPtr<'a, T>[src]
impl<'a> DerefMut for BufferPtr<'a, Writable>[src]
Auto Trait Implementations
impl<'a, T> Unpin for BufferPtr<'a, T>
impl<'a, T> !Sync for BufferPtr<'a, T>
impl<'a, T> !Send for BufferPtr<'a, T>
impl<'a, T> UnwindSafe for BufferPtr<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> RefUnwindSafe for BufferPtr<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,