84 idcur->SetFirst(first);
130 if (
idcur == 0)
return 0;
152 idcur->SetLast(last);
161 std::cout <<
"Free Segment: "<<
fFirst<<
"\t"<<
fLast<<std::endl;
void frombuf(char *&buf, Bool_t *x)
void tobuf(char *&buf, Bool_t x)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
TFree()
Default constructor.
Int_t Sizeof() const
return number of bytes occupied by this TFree on permanent storage
virtual void ReadBuffer(char *&buffer)
Decode one free structure from input buffer.
void ls(Option_t *="") const override
List free segment contents.
~TFree() override
Destructor.
Long64_t fLast
Last free word of segment.
static constexpr Version_t Class_Version()
virtual void FillBuffer(char *&buffer)
Encode fre structure into output buffer.
Long64_t fFirst
First free word of segment.
TFree * AddFree(TList *lfree, Long64_t first, Long64_t last)
Add a new free segment to the list of free segments.
TFree * GetBestFree(TList *lfree, Int_t nbytes)
Return the best free segment where to store nbytes.