Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.uio.buffer.arrays
Class FloatArrayBufferManager  view FloatArrayBufferManager download FloatArrayBufferManager.java

java.lang.Object
  extended bycom.imagero.uio.buffer.arrays.AbstractArrayBufferManager
      extended bycom.imagero.uio.buffer.arrays.FloatArrayBufferManager
All Implemented Interfaces:
com.imagero.uio.buffer.BufferManager, com.imagero.uio.buffer.MutableBufferManager

public class FloatArrayBufferManager
extends AbstractArrayBufferManager

Gives possibility to read and write an float array using RandomAccess interface


Field Summary
(package private)  float[] data
           
 
Fields inherited from class com.imagero.uio.buffer.arrays.AbstractArrayBufferManager
accessManager, length, offset, TILE_SIZE, tileSize, unitSize
 
Fields inherited from interface com.imagero.uio.buffer.BufferManager
empty
 
Constructor Summary
FloatArrayBufferManager(float[] data)
          Create FloatArrayBufferManager with standard tile size
FloatArrayBufferManager(float[] data, int size)
          Create FloatArrayBufferManager with specified tile size
FloatArrayBufferManager(float[] data, int offset, int length)
          Create FloatArrayBufferManager with standard tile size
FloatArrayBufferManager(float[] data, int offset, int length, int size)
          Create FloatArrayBufferManager with specified tile size
 
Method Summary
protected  int readUnitBE(int offset, byte[] dest, int destOffset)
          read unit (int) in BIG_ENDIAN order
protected  int readUnitLE(int offset, byte[] dest, int destOffset)
          read appropriate unit (int) in LITTLE_ENDIAN order
protected  int writeUnitBE(byte[] source, int sourceOffset, int destOffset)
          write appropriate unit (int) in BIG_ENDIAN order
protected  int writeUnitLE(byte[] source, int sourceOffset, int destOffset)
          write appropriate unit (int) in LITTLE_ENDIAN order
 
Methods inherited from class com.imagero.uio.buffer.arrays.AbstractArrayBufferManager
clear, clear, close, flush, flush, getByteOrder, getCount, getData, getDataLength, getDataStart, getIndex, getLength, getMaxCache, getUnitSize, printHex, printHex, printHex, printHex, printHex, printHex, printHex, read, readBE, readLE, setByteOrder, setDirty, setDirty, setMaxCache, write, writeBE, writeLE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

float[] data
Constructor Detail

FloatArrayBufferManager

public FloatArrayBufferManager(float[] data)
Create FloatArrayBufferManager with standard tile size


FloatArrayBufferManager

public FloatArrayBufferManager(float[] data,
                               int size)
Create FloatArrayBufferManager with specified tile size


FloatArrayBufferManager

public FloatArrayBufferManager(float[] data,
                               int offset,
                               int length)
Create FloatArrayBufferManager with standard tile size


FloatArrayBufferManager

public FloatArrayBufferManager(float[] data,
                               int offset,
                               int length,
                               int size)
Create FloatArrayBufferManager with specified tile size

Method Detail

writeUnitLE

protected int writeUnitLE(byte[] source,
                          int sourceOffset,
                          int destOffset)
write appropriate unit (int) in LITTLE_ENDIAN order

Specified by:
writeUnitLE in class AbstractArrayBufferManager

writeUnitBE

protected int writeUnitBE(byte[] source,
                          int sourceOffset,
                          int destOffset)
write appropriate unit (int) in BIG_ENDIAN order

Specified by:
writeUnitBE in class AbstractArrayBufferManager

readUnitBE

protected int readUnitBE(int offset,
                         byte[] dest,
                         int destOffset)
read unit (int) in BIG_ENDIAN order

Specified by:
readUnitBE in class AbstractArrayBufferManager

readUnitLE

protected int readUnitLE(int offset,
                         byte[] dest,
                         int destOffset)
read appropriate unit (int) in LITTLE_ENDIAN order

Specified by:
readUnitLE in class AbstractArrayBufferManager