Runner's High
Public Member Functions | Public Attributes | Properties | List of all members
Accel.RingBuffer< T > Class Template Reference

A RingBuffer to store data. More...

Inheritance diagram for Accel.RingBuffer< T >:
Accel.DataStreamOutput< T >

Public Member Functions

 RingBuffer (int length=10000)
 
void write (T sample)
 Write 1 sample to the ring buffer.
 
void write (T[] samples)
 Write an array of samples to the ring buffer.
 
T[] read (int length)
 Read the last length samples from the ring buffer.
 
void clear ()
 Zero out the ring buffer.
 

Public Attributes

T[] buffer
 
int n
 
int tail
 

Properties

RingBuffer< T > Stream [get]
 The ring buffer.
 
- Properties inherited from Accel.DataStreamOutput< T >
RingBuffer< T > Stream [get]
 

Detailed Description

A RingBuffer to store data.

Template Parameters
TAny data type.

The documentation for this class was generated from the following file: