TFPBlock
This class represents the encapsulation of a block request.
It contains the chunks to be prefetched and also serves as a
container for the information read.
These blocks are prefetch in a special reader thread by the
TFilePrefetch class.
class TFPBlock : public TObject
class
private:
char *fBuffer;
Int_t fNblock;
Long64_t fDataSize;
Long64_t fCapacity;
Int_t *fLen;
Long64_t *fPos;
Long64_t *fRelOffset;
TFPBlock(const TFPBlock&);
TFPBlock &operator=(const TFPBlock&);
public:
TFPBlock(Long64_t*, Int_t*, Int_t);
virtual ~TFPBlock();
Long64_t GetPos(Int_t) const;
Int_t GetLen(Int_t) const;
Long64_t *GetPos() const;
Int_t *GetLen() const;
Long64_t GetDataSize() const;
Long64_t GetCapacity() const;
Int_t GetNoElem() const;
char *GetBuffer() const;
char *GetPtrToPiece(Int_t index) const;
void SetBuffer(char*);
void SetPos(Int_t, Long64_t);
void ReallocBlock(Long64_t*, Int_t*, Int_t);