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

virtual PositionType Impala::Util::IOBuffer::Seek ( PositionType  offset,
int  whence 
) [inline, virtual]

Definition at line 644 of file IOBuffer.h.

References GetPosition(), SetPosition(), and Size().

Referenced by Impala::Application::DataServer::AcceptRequest(), Impala::Core::Table::Read(), Impala::Core::Feature::ReadBINDESC1FromBuffer(), Impala::Core::Feature::ReadCodebookFromBuffer(), Impala::Core::Stream::LavcProtocolImpl::Seek(), and Impala::Core::Table::Write().

00645     {
00646         if (whence == SEEK_CUR)
00647             SetPosition(GetPosition() + offset);
00648         else if (whence == SEEK_END)
00649             SetPosition(Size() + offset);
00650         else if (whence == SEEK_SET)
00651             SetPosition(offset);
00652         else
00653             return -1;
00654 
00655         return GetPosition();
00656     }

Here is the call graph for this function:


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