/// Read from circular buffer without removing them from the buffer.
/// # Arguments
/// * `out` A mutable slice where the items will be copied.
/// * `items` The number of elements to peek from the buffer.
/// # Returns
/// The actual number of items read **(0 <= n <= items)**, or an error if the number of items
/// to read/write exceeds the buffer's capacity.
Read from circular buffer without removing them from the buffer.
Read from circular buffer without removing them from the buffer .
pub fn peek(&self, out: &mut [T], items: u32) -> Result<usize, &'static str> {
        if items as usize <= out.len() {
            return Err("your buffer has not enough capacity");
        }
        unsafe {
            Ok(csound_sys::csoundPeekCircularBuffer(
                self.csound,
                self.ptr as *mut c_void,
                out.as_mut_ptr() as *mut c_void,
                items as c_int,
            ) as usize)
        }
    }
pub fn peek ( & self , out : & mut [ T ] , items : u32 ) -> Result < usize , & ' static str > { if items as usize <= out . len ( ) { return Err ( " " ) ; } unsafe { Ok ( csound_sys :: csoundPeekCircularBuffer ( self . csound , self . ptr as * mut c_void , out . as_mut_ptr ( ) as * mut c_void , items as c_int , ) as usize ) } }
Read from circular buffer without removing them from the buffer.
Read from circular buffer without removing them from the buffer .
The actual number of items read **(0 <= n <= items)**, or an error if the number of items
to read/write exceeds the buffer's capacity.
The actual number of items read ** ( 0 < = n < = items ) ** or an error if the number of items to read / write exceeds the buffer ' s capacity .
&self
out
&mut [T]
items
u32