only for ascii (not binary) entities
Reimplemented in Impala::Util::IOBufferChannel, and Impala::Util::IOBufferFile.
Definition at line 309 of file IOBuffer.h.
References Available(), GetPosition(), mBuffer, and SetPosition().
Referenced by Impala::Util::DatabaseReadString(), Impala::Core::Geometry::DatabaseReadVxRectangle(), Impala::Persistency::VideoSetRepositoryInFile::Get(), Impala::Persistency::ImageSetRepositoryInFile::Get(), Impala::Persistency::VideoSetsRepository::GetFromFileSystem(), Impala::Persistency::ImageSetsRepository::GetFromFileSystem(), Impala::Core::Feature::FeatureTable::ImportAscii(), Impala::Core::Database::RawDataSet::Init(), Impala::Core::Feature::LabelSet::Load(), Impala::Core::VideoJob::Manager::Prepare(), Impala::Util::Read(), Impala::Persistency::SvmProblemRepositoryInFile::Read(), Impala::Core::Feature::LabelSet::Read(), Impala::Core::Table::Read(), Impala::Core::Column::Read(), Impala::Core::Feature::ReadBINDESC1FromBuffer(), Impala::Persistency::DistributedAccessRepositoryInFile::ReadInfoFile(), Impala::Util::IOBufferFile::ReadLine(), ReadStrings(), Impala::Persistency::File::ReadStrings(), and Impala::Core::Array::SkipEmpty().
00310 {
00311 Int64 start = GetPosition();
00312 Int64 i = 0;
00313 Int64 available = Available();
00314 while ((i < available) && (mBuffer[start+i] != '\n'))
00315 i++;
00316 Int64 skipN = (mBuffer[start+i] == '\n') ? 1 : 0;
00317 SetPosition(start + i + skipN);
00318 if ((i > 0) && (mBuffer[start+i-1] == '\r'))
00319 i--;
00320 const char* p = reinterpret_cast<const char*>(mBuffer + start);
00321 return String(p, i);
00322 }
Here is the call graph for this function: