public class PayloadBuffer extends RingItemAdapter
attachment, buffer, byteBufferItem, byteBufferSupply, controlType, event, eventCount, eventType, firstEventNumber, hasError, isFirst, isSync, isUser, matchesId, node, nonFatalBuildingError, recordId, reserved, sourceId, sourceName, switchRing| Constructor and Description |
|---|
PayloadBuffer()
Zero-arg constructor.
|
PayloadBuffer(java.nio.ByteBuffer buffer)
Constructor that sets attachment to null.
|
PayloadBuffer(java.nio.ByteBuffer buffer,
EventType eventType,
ControlType controlType,
int recordId,
int sourceId,
java.lang.String sourceName,
org.jlab.coda.jevio.EvioNode node)
Constructor that sets attachment to null.
|
PayloadBuffer(java.nio.ByteBuffer buffer,
java.lang.Object attachment,
org.jlab.coda.jevio.EvioNode node)
Constructor.
|
PayloadBuffer(PayloadBuffer buf)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones this object setting the attachment to null.
|
java.nio.ByteOrder |
getByteOrder()
What is the byte order of this data?
|
int |
getTotalBytes()
Get the length of this structure in bytes, including the header.
|
copy, getAttachment, getBuffer, getByteBufferItem, getByteBufferSupply, getControlType, getEvent, getEventCount, getEventType, getFirstEventNumber, getNode, getRecordId, getSourceId, getSourceName, getSwitchRing, hasError, hasNonFatalBuildingError, isControlEvent, isFirstEvent, isFirstEvent, isSync, isUser, isUser, matchesId, matchesId, releaseByteBuffer, setAll, setAttachment, setBuffer, setControlType, setError, setEvent, setEventCount, setEventType, setFirstEventNumber, setNode, setNonFatalBuildingError, setRecordId, setReusableByteBuffer, setSourceId, setSourceName, setSwitchRing, setSyncpublic PayloadBuffer()
public PayloadBuffer(java.nio.ByteBuffer buffer)
buffer - ByteBuffer to wrap.public PayloadBuffer(java.nio.ByteBuffer buffer,
java.lang.Object attachment,
org.jlab.coda.jevio.EvioNode node)
buffer - ByteBuffer to wrap.attachment - object to associate with the ByteBuffer.node - object holding details about the buffer.public PayloadBuffer(java.nio.ByteBuffer buffer,
EventType eventType,
ControlType controlType,
int recordId,
int sourceId,
java.lang.String sourceName,
org.jlab.coda.jevio.EvioNode node)
buffer - ByteBuffer to wrap.eventType - type of CODA events contained.controlType - if Control eventType, the type of control.recordId - if Physics or RocRaw, the record id of CODA events.sourceId - If RocRaw, the CODA id of the source.sourceName - The name of the source of these CODA events.node - object holding details about the buffer.public PayloadBuffer(PayloadBuffer buf)
buf - ByteBuffer to wrap.public int getTotalBytes()
getTotalBytes in interface RingItemgetTotalBytes in class RingItemAdapterpublic java.nio.ByteOrder getByteOrder()
getByteOrder in interface RingItemgetByteOrder in class RingItemAdapterByteOrder.BIG_ENDIAN, ByteOrder.LITTLE_ENDIAN, or nullpublic java.lang.Object clone()
clone in class RingItemAdapter