Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

virtual Int64 Impala::Util::IOBufferFile::Gets ( char *  buf,
Int64  bytesToRead 
) [inline, virtual]

Reimplemented from Impala::Util::IOBuffer.

Definition at line 142 of file IOBufferFile.h.

References Impala::Util::IOBuffer::Available(), FSeek(), FTell(), Impala::Util::IOBuffer::GetPosition(), Impala::Util::IOBuffer::Gets(), mFile, mUseMemory, and SetPosition().

00143     {
00144         if (mUseMemory)
00145             return IOBuffer::Gets(buf, bytesToRead);
00146 
00147         Int64 available = Available();
00148         if (available < bytesToRead)
00149             bytesToRead = available;
00150         FSeek(mFile, GetPosition(), SEEK_SET);
00151         fgets(buf, bytesToRead, mFile);
00152         SetPosition(FTell(mFile));
00153         return bytesToRead;
00154     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:40:42 2010 for ImpalaSrc by  doxygen 1.5.1