Definition at line 125 of file ImageArchiveFileFset.h. References mCompressed, mFileOffset, mFirstSegment, mIOBuffer, mSegmentLength, Impala::Util::IOBuffer::Read(), and Impala::Util::IOBuffer::SetPosition(). Referenced by ImageArchiveFileFset(), and ReadImage(). 00126 { 00127 int segLen = mSegmentLength[idx]; 00128 char* res = new char[segLen]; 00129 int compressed = mCompressed[idx]; 00130 if (compressed > 0) 00131 memcpy(res, mFirstSegment, compressed); 00132 int remainder = segLen - compressed; 00133 if (remainder > 0) 00134 { 00135 int off = mFileOffset[idx]; 00136 mIOBuffer->SetPosition(off); 00137 mIOBuffer->Read(res + compressed, remainder); 00138 } 00139 return res; 00140 }
Here is the call graph for this function:
|