CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
InputChunk Struct Reference

#include <FedRawDataInputSource.h>

Public Member Functions

 InputChunk (unsigned int index, uint32_t size)
 
void reset (unsigned int newOffset, unsigned int toRead, unsigned int fileIndex)
 
 ~InputChunk ()
 

Public Attributes

unsigned char * buf_
 
unsigned int fileIndex_
 
unsigned int index_
 
InputChunknext_ = 0
 
unsigned int offset_
 
std::atomic< bool > readComplete_
 
uint32_t size_
 
uint32_t usedSize_ = 0
 

Detailed Description

Definition at line 177 of file FedRawDataInputSource.h.

Constructor & Destructor Documentation

InputChunk::InputChunk ( unsigned int  index,
uint32_t  size 
)
inline

Definition at line 187 of file FedRawDataInputSource.h.

References reset().

187  : size_(size),index_(index) {
188  buf_ = new unsigned char[size_];
189  reset(0,0,0);
190  }
size
Write out results.
unsigned int index_
void reset(unsigned int newOffset, unsigned int toRead, unsigned int fileIndex)
unsigned char * buf_
InputChunk::~InputChunk ( )
inline

Definition at line 198 of file FedRawDataInputSource.h.

198 {delete[] buf_;}
unsigned char * buf_

Member Function Documentation

void InputChunk::reset ( unsigned int  newOffset,
unsigned int  toRead,
unsigned int  fileIndex 
)
inline

Definition at line 191 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readSupervisor().

191  {
192  offset_=newOffset;
193  usedSize_=toRead;
194  fileIndex_=fileIndex;
195  readComplete_=false;
196  }
unsigned int offset_
unsigned int fileIndex_
std::atomic< bool > readComplete_

Member Data Documentation

unsigned char* InputChunk::buf_

Definition at line 178 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker().

unsigned int InputChunk::fileIndex_

Definition at line 184 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker().

unsigned int InputChunk::index_

Definition at line 182 of file FedRawDataInputSource.h.

InputChunk* InputChunk::next_ = 0

Definition at line 179 of file FedRawDataInputSource.h.

unsigned int InputChunk::offset_

Definition at line 183 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker().

std::atomic<bool> InputChunk::readComplete_
uint32_t InputChunk::size_

Definition at line 180 of file FedRawDataInputSource.h.

uint32_t InputChunk::usedSize_ = 0

Definition at line 181 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker().