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

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

Reimplemented from Impala::Util::IOBuffer.

Definition at line 148 of file IOBufferFile.h.

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

00149     {
00150         if (mUseMemory)
00151             return IOBuffer::Gets(buf, bytesToRead);
00152 
00153         Int64 available = Available();
00154         if (available < bytesToRead)
00155             bytesToRead = available;
00156         FSeek(mFile, GetPosition(), SEEK_SET);
00157         fgets(buf, bytesToRead, mFile);
00158         SetPosition(FTell(mFile));
00159         return bytesToRead;
00160     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:24:16 2011 for ImpalaSrc by  doxygen 1.5.1