import org.eclipse.tracecompass.internal.ctf.core.SafeMappedByteBuffer;
import org.eclipse.tracecompass.internal.ctf.core.event.EventDeclaration;
import org.eclipse.tracecompass.internal.ctf.core.event.types.composite.EventHeaderDefinition;
-import org.eclipse.tracecompass.internal.ctf.core.trace.StreamInputPacketIndexEntry;
import com.google.common.collect.ImmutableList;
private ICompositeDefinition fCurrentStreamEventHeaderDef;
private ICompositeDefinition fCurrentStreamPacketContextDef;
/** Reference to the index entry of the current packet. */
- private StreamInputPacketIndexEntry fCurrentPacket = null;
+ private ICTFPacketDescriptor fCurrentPacket = null;
/**
* Last timestamp recorded.
*
* @return the current packet
*/
- StreamInputPacketIndexEntry getCurrentPacket() {
+ ICTFPacketDescriptor getCurrentPacket() {
return fCurrentPacket;
}
* The index entry of the packet to switch to.
* @throws CTFException
* If we get an error reading the packet
+ * @since 1.0
*/
- void setCurrentPacket(StreamInputPacketIndexEntry currentPacket) throws CTFException {
- StreamInputPacketIndexEntry prevPacket = null;
+ public void setCurrentPacket(ICTFPacketDescriptor currentPacket) throws CTFException {
+ ICTFPacketDescriptor prevPacket = null;
fCurrentPacket = currentPacket;
if (fCurrentPacket != null) {
*/
public boolean hasMoreEvents() {
BitBuffer bitBuffer = fBitBuffer;
- StreamInputPacketIndexEntry currentPacket = fCurrentPacket;
+ ICTFPacketDescriptor currentPacket = fCurrentPacket;
if (currentPacket != null && bitBuffer != null) {
return fHasLost || (bitBuffer.position() < currentPacket.getContentSizeBits());
}