A circular buffer.
More...
◆ CircularBuffer() [1/2]
| fm.liveswitch.CircularBuffer.CircularBuffer |
( |
int |
length, |
|
|
int |
latency |
|
) |
| |
◆ CircularBuffer() [2/2]
| fm.liveswitch.CircularBuffer.CircularBuffer |
( |
int |
length, |
|
|
int |
latency, |
|
|
boolean |
littleEndian |
|
) |
| |
Initializes a new instance of the fm.liveswitch.CircularBuffer class.
- Parameters
-
| length | The length. |
| latency | The latency. |
| littleEndian | Whether the data is little-endian. |
◆ getAvailable()
| int fm.liveswitch.CircularBuffer.getAvailable |
( |
| ) |
|
Gets the number of bytes available for reading.
◆ getLatency()
| int fm.liveswitch.CircularBuffer.getLatency |
( |
| ) |
|
◆ getLength()
| int fm.liveswitch.CircularBuffer.getLength |
( |
| ) |
|
◆ getLittleEndian()
| boolean fm.liveswitch.CircularBuffer.getLittleEndian |
( |
| ) |
|
Gets whether the data is little-endian.
◆ getReadOffset()
| int fm.liveswitch.CircularBuffer.getReadOffset |
( |
| ) |
|
◆ getWriteOffset()
| int fm.liveswitch.CircularBuffer.getWriteOffset |
( |
| ) |
|
◆ read()
Reads data from the buffer.
- Parameters
-
| length | The number of bytes to read. |
◆ write()
Writes data to the buffer.
- Parameters
-