GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
virtual Bool_t ADF::FrameBlock::SetBlock ( Char_t *  = 0x0,
UInt_t  = 0u,
char  = 'r',
char  = 'l',
UInt_t  = 0u 
)
pure virtual

Attach a external block to this.

Should be possible only for certain type of blocks.

if r is set as an option (default) then rewind is called :

  • if the mode is kRead then the attached buffer should be full of data and with Rewind called, the FrameBlock is ready to be read
  • if the mode is kWrite then whatever there is in the attached buffer it will be overwritten because Rewind is called. It is a way to redirect the output to a given piece of memory.

if r is not set is means the EoB has been reached. An explicit call of Rewind should be done.

To detach the external block, call SetBlock()

Implemented in ADF::FileBlock, and ADF::OneBlock.