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

virtual PositionType Impala::Util::IOBuffer::Available (  )  [inline, virtual]

Number of bytes til end of controlled entity.

when mPosition == mSize-1 there is still one byte left to read, when mPosition == mSize reading is done DK: This is a weird assumptions, because with files this can never be

Definition at line 128 of file IOBuffer.h.

References ILOG_ERROR, mPosition, and mSize.

Referenced by Impala::Application::FileServer::AcceptRequest(), AvailableInt32(), Impala::Persistency::File::CopyFrom(), Impala::Util::DatabaseReadNative(), Impala::Util::DatabaseReadString(), Impala::Core::Geometry::DatabaseReadVxRectangle(), Impala::Application::FileClient::DoPut(), Impala::Util::FileCopyLocalToRemote(), Impala::Util::FileCopyRemoteToLocal(), Impala::Persistency::VideoSetRepositoryInFile::Get(), Impala::Persistency::ImageSetRepositoryInFile::Get(), Impala::Persistency::AllParameterFileRepositoryInFile::Get(), Impala::Persistency::VideoSetsRepository::GetFromFileSystem(), Impala::Persistency::ImageSetsRepository::GetFromFileSystem(), Impala::Util::IOBufferFile::Gets(), Impala::Util::IOBufferChannel::Gets(), Gets(), Impala::Core::Feature::FeatureTable::ImportAscii(), Impala::Core::Database::RawDataSet::Init(), Impala::Core::Feature::LabelSet::Load(), Puts(), Impala::Util::IOBufferFile::Read(), Read(), Impala::Persistency::SvmProblemRepositoryInFile::Read(), Impala::Core::Feature::LabelSet::Read(), Impala::Util::IOBufferFile::ReadLine(), Impala::Util::IOBufferChannel::ReadLine(), ReadLine(), Impala::Persistency::File::ReadNative(), ReadStrings(), Impala::Persistency::File::ReadStrings(), Write(), and WriteIOBufferToChannel().

00129     {
00130         PositionType res = mSize - mPosition;
00131         if (res < 0)
00132         {
00133             ILOG_ERROR("Available: position beyond size");
00134             return 0;
00135         }
00136         if (res == 1)
00137             return 0;
00138         return res;
00139     }


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