simtools.data.buffer
Class ResizeableBuffer.ResizeableByteManipulator
java.lang.Object
simtools.data.buffer.Buffer.ByteManipulator
simtools.data.buffer.SimpleBuffer.SimpleByteManipulator
simtools.data.buffer.ResizeableBuffer.ResizeableByteManipulator
- All Implemented Interfaces:
- java.lang.Cloneable, Buffer.Manipulator
- Direct Known Subclasses:
- DelayedBuffer.DelayedByteManipulator
- Enclosing class:
- ResizeableBuffer
public class ResizeableBuffer.ResizeableByteManipulator
- extends SimpleBuffer.SimpleByteManipulator
This class handles optimization for byte objects.
Method Summary |
byte |
getValue(long index)
|
void |
setSlice(long min,
long max)
Use this function to optimize the buffer on the given index range |
boolean |
setValue(long index,
byte value)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResizeableBuffer.ResizeableByteManipulator
public ResizeableBuffer.ResizeableByteManipulator()
getValue
public byte getValue(long index)
throws DataException
- Overrides:
getValue
in class SimpleBuffer.SimpleByteManipulator
- Throws:
DataException
setValue
public boolean setValue(long index,
byte value)
throws DataException
- Overrides:
setValue
in class SimpleBuffer.SimpleByteManipulator
- Throws:
DataException
setSlice
public void setSlice(long min,
long max)
- Use this function to optimize the buffer on the given index range
- Overrides:
setSlice
in class Buffer.ByteManipulator