de.gulden.util.nio

Class FifoFloat

public class FifoFloat extends Object

Fifo for float values. This class is synchronized.

Version: 0.3

Author: Jens Gulden

Field Summary
protected intallocationSize
protected FloatBufferappendable
protected intavail
static intDEFAULT_ALLOCATION_SIZE
protected ArrayListfifo
Constructor Summary
FifoFloat()
Method Summary
intavailable()
voidensureCapacity(int size)
voidget(float[] arr, int n)
voidget(float[] arr)
floatget()
protected FloatBuffergetAppendable()
booleanisEmpty()
voidput(FloatBuffer buf)
Only the remaining buffer content will be used by the fifo-queue.
voidput(float[] f)
voidput(float[] f, int offset, int length)
voidput(float f)

Field Detail

allocationSize

protected int allocationSize

appendable

protected FloatBuffer appendable

avail

protected int avail

DEFAULT_ALLOCATION_SIZE

public static int DEFAULT_ALLOCATION_SIZE

fifo

protected ArrayList fifo

Constructor Detail

FifoFloat

public FifoFloat()

Method Detail

available

public int available()

ensureCapacity

public void ensureCapacity(int size)

get

public void get(float[] arr, int n)

get

public void get(float[] arr)

get

public float get()

getAppendable

protected FloatBuffer getAppendable()

isEmpty

public boolean isEmpty()

put

public void put(FloatBuffer buf)
Only the remaining buffer content will be used by the fifo-queue.

put

public void put(float[] f)

put

public void put(float[] f, int offset, int length)

put

public void put(float f)