|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object seda.sandStorm.core.BufferElement
public class BufferElement
A BufferElement is a QueueElementIF which represents a memory buffer.
Field Summary | |
---|---|
SinkIF |
compQ
The completion queue associated with this buffer. |
byte[] |
data
The data associated with this BufferElement. |
int |
offset
The offet into the data associated with this BufferElement. |
int |
size
The size of the data associated with this BufferElement. |
java.lang.Object |
userTag
A user-defined tag object associated with this buffer. |
Constructor Summary | |
---|---|
BufferElement(byte[] data)
Create a BufferElement with the given data, an offset of 0, and a size of data.length. |
|
BufferElement(byte[] data,
int offset,
int size)
Create a BufferElement with the given data, offset, and size. |
|
BufferElement(byte[] data,
int offset,
int size,
SinkIF compQ)
Create a BufferElement with the given data, offset, size, and completion queue. |
|
BufferElement(byte[] data,
SinkIF compQ)
Create a BufferElement with the given data, an offset of 0, and a size of data.length, with the given completion queue. |
|
BufferElement(int size)
Create a BufferElement with a new data array of the given size. |
Method Summary | |
---|---|
byte[] |
getBytes()
Return the data. |
SinkIF |
getCompletionQueue()
Return the completion queue for this buffer. |
int |
getOffset()
Return the offset. |
int |
getSize()
Return the size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public byte[] data
public SinkIF compQ
public java.lang.Object userTag
public int size
public int offset
Constructor Detail |
---|
public BufferElement(byte[] data)
public BufferElement(byte[] data, SinkIF compQ)
public BufferElement(byte[] data, int offset, int size)
public BufferElement(byte[] data, int offset, int size, SinkIF compQ)
public BufferElement(int size)
Method Detail |
---|
public byte[] getBytes()
public int getSize()
public int getOffset()
public SinkIF getCompletionQueue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |