return kTRUE;
}
-Bool_t AliHLTTPCMemHandler::Binary2Memory(UInt_t & nrow,AliHLTTPCDigitRowData *data)
+Bool_t AliHLTTPCMemHandler::Binary2Memory(UInt_t & nrow,AliHLTTPCDigitRowData *data,UInt_t& sz)
{
//Read inputfile into memory as is, and store it in data.
// No run-length encoding is assumed.
LOG(AliHLTTPCLog::kDebug,"AliHLTTPCMemHandler::Binary2Memory","Memory")
<<AliHLTTPCLog::kDec<<"Wrote "<<outsize<<" Bytes to Memory ("
<<rowcount<<" Rows)"<<ENDLOG;
+ sz = outsize;
return kTRUE;
}
}
Int_t AliHLTTPCMemHandler::CompMemory2Memory(UInt_t nrow,
- AliHLTTPCDigitRowData *data,UInt_t *comp)
+ AliHLTTPCDigitRowData *data,UInt_t *comp, UInt_t& sz)
{
//Uncompress the run-length encoded data in memory pointed to by comp, and
// store it in data.
outsize += size;
rowPt = (AliHLTTPCDigitRowData *) bytePt;
}
+ sz = outsize;
return outsize;
}
return kTRUE;
}
-AliHLTTPCDigitRowData *AliHLTTPCMemHandler::CompBinary2Memory(UInt_t & nrow)
+AliHLTTPCDigitRowData *AliHLTTPCMemHandler::CompBinary2Memory(UInt_t & nrow, UInt_t& sz )
{
// Read the RLE inputfile, unpack it and return the pointer to it.
AliHLTTPCMemHandler * handler = new AliHLTTPCMemHandler();
UInt_t *comp =(UInt_t *)handler->Allocate();
handler->CompBinary2CompMemory(nrow,comp);
UInt_t size = GetMemorySize(nrow,comp);
+ sz = size;
AliHLTTPCDigitRowData *data = (AliHLTTPCDigitRowData *)Allocate(size);
CompMemory2Memory(nrow,data,comp);
handler->Free();
return kTRUE;
}
-Bool_t AliHLTTPCMemHandler::Binary2Memory(UInt_t & npoint,AliHLTTPCSpacePointData *data)
+Bool_t AliHLTTPCMemHandler::Binary2Memory(UInt_t & npoint,AliHLTTPCSpacePointData *data, UInt_t& sz)
{
//Read the space points in inputfile, and store it in data.
if(!fInBinary){
}
Int_t size = GetFileSize();
+ sz = size;
npoint = size/sizeof(AliHLTTPCSpacePointData);
if(size==0) {
LOG(AliHLTTPCLog::kWarning,"AliHLTTPCMemHandler::Binary2Memory","File")