de.gulden.util.nio
Class RingFloat
public
class
RingFloat
extends FifoFloat
Array-based ringbuffer implementation.
A ringbuffer does not change in size dynamically, data that
first has been put into the buffer willl be overwritten by new data
once the maximum ringbuffer capacity has been reached.
A program can ensure a minimum buffer size by calling ensureSize(),
decreasing of buffer size is not possible.
Version: 0.3
Author: Jens Gulden
Method Summary |
void | ensureCapacity(int size) |
float | get(int diff) |
void | put(FloatBuffer buf)
Only the remaining buffer content will be used by the fifo-queue. |
void | put(float[] f) |
void | put(float[] f, int offset, int length) |
void | put(float f) |
protected float[] buffer
protected int pos
public RingFloat()
public RingFloat(int initialCapacity)
public void ensureCapacity(int size)
public float get(int diff)
public void put(FloatBuffer buf)
Only the remaining buffer content will be used by the fifo-queue.
public void put(float[] f)
public void put(float[] f, int offset, int length)
public void put(float f)