|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.dexterim.oscar.OscarByteBuffer
net.sf.dexterim.oscar.BufferArray
| Method Summary | |
byte[] |
array()
Returns the underlying data structure as byte array. |
static OscarByteBuffer |
createBufferArray(java.util.List buffers)
|
static OscarByteBuffer |
createBufferArray(OscarByteBuffer first,
OscarByteBuffer second)
|
int |
fill()
Returns last position with data available |
int |
getByte()
Returns byte at current position. |
DWord |
getDWord()
Returns the data chunk at current position as DWord. |
Word |
getWord()
Returns the data chunk at current position as Word. |
int |
position()
Returns the current position. |
int |
position(int position)
Sets the position to newPosition and returns the old position. |
int |
size()
Returns the current size of the buffer. |
byte[] |
slice()
Returns the underlying data structure as byte array. |
int |
strip()
Strips the OscarByteBuffer by setting the fill to the current position. |
OscarByteBuffer |
write(byte source)
Writes a byte value at current position. |
OscarByteBuffer |
write(ByteBased source)
Writes a ByteBased value at current position. |
OscarByteBuffer |
write(OscarByteBuffer source)
Writes a OscarByteBuffer value at current position. |
| Methods inherited from class net.sf.dexterim.oscar.OscarByteBuffer |
allocate, dynamic, wrap, wrapDynamic |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int position(int position)
OscarByteBuffer
position in class OscarByteBufferposition - new Position
public int position()
OscarByteBuffer
position in class OscarByteBufferpublic int size()
OscarByteBuffer
size in class OscarByteBufferpublic int fill()
OscarByteBuffer
fill in class OscarByteBufferpublic int strip()
OscarByteBuffer
strip in class OscarByteBufferpublic Word getWord()
OscarByteBuffer
getWord in class OscarByteBufferpublic DWord getDWord()
OscarByteBuffer
getDWord in class OscarByteBufferpublic int getByte()
OscarByteBuffer
getByte in class OscarByteBufferpublic OscarByteBuffer write(ByteBased source)
OscarByteBuffer
write in class OscarByteBuffersource - value to write to buffer
public OscarByteBuffer write(byte source)
OscarByteBuffer
write in class OscarByteBuffersource - value to write to buffer
public OscarByteBuffer write(OscarByteBuffer source)
OscarByteBuffer
write in class OscarByteBuffersource - value to write to buffer
public byte[] array()
OscarByteBuffer
array in class OscarByteBufferpublic byte[] slice()
OscarByteBuffer
slice in class OscarByteBuffer
public static OscarByteBuffer createBufferArray(OscarByteBuffer first,
OscarByteBuffer second)
public static OscarByteBuffer createBufferArray(java.util.List buffers)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||