Reimplemented in Impala::Util::IOBufferChannel, and Impala::Util::IOBufferFile.
Definition at line 520 of file IOBuffer.h.
References Available(), GetBuffer(), GetPosition(), and SetPosition().
Referenced by Impala::Util::DatabaseWriteString(), Impala::Application::Repository::DoKernelMatrix2Text(), Impala::Core::IDash::XmlJobReference::Export(), Impala::Core::IDash::XmlJob::Export(), Impala::Core::Feature::FeatureTable::ExportAscii(), Impala::Core::VideoSet::Mpeg7Doc::ExportMediaTime(), Impala::Core::VideoSet::Mpeg7Doc::ExportShot(), Impala::Core::VideoSet::Mpeg7Doc::ExportXml(), main(), Impala::Util::PropertySet::Print(), Puts(), Impala::Core::Feature::LabelSet::Save(), Impala::Util::Write(), Impala::Persistency::SvmProblemRepositoryInFile::Write(), Impala::Core::Feature::Write(), Impala::Core::Feature::LabelSet::Write(), Impala::Core::Column::Write(), Impala::Persistency::DistributedAccessRepositoryInFile::WriteFeatures(), Impala::Core::Array::WriteRawList(), Impala::Core::Array::WriteRawListVar(), WriteStrings(), and Impala::Persistency::File::WriteStrings().
00521 {
00522 Int64 len = strlen(buf);
00523 Int64 available = Available();
00524 if (available < len)
00525 len = available;
00526 unsigned char* start = GetBuffer() + GetPosition();
00527 memcpy(start, buf, len);
00528 start[len] = '\n';
00529 SetPosition(GetPosition() + len + 1);
00530 return 1;
00531 }
Here is the call graph for this function: