org.caleigo.toolkit.util
Class CircularByteBuffer
java.lang.Object
org.caleigo.toolkit.util.CircularByteBuffer
- public class CircularByteBuffer
- extends java.lang.Object
- Version:
- 1.00
- Author:
- Mattias Hagstrand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mBuffer
protected byte[] mBuffer
mBufferSize
protected int mBufferSize
mCurrentReadPosition
protected int mCurrentReadPosition
mCurrentWritePosition
protected int mCurrentWritePosition
mAvailableSpace
protected int mAvailableSpace
CircularByteBuffer
public CircularByteBuffer(int bufferSize)
addToBuffer
public void addToBuffer(byte[] b,
int off,
int len)
getFromBuffer
public int getFromBuffer(byte[] b,
int off,
int len)
getBufferSize
public int getBufferSize()
resizeBuffer
protected void resizeBuffer()
getAvailableBufferSpace
protected int getAvailableBufferSpace()
Copyright © 2005 Caleigo. All Rights Reserved.