returns number of bytes read
Reimplemented in Impala::Util::IOBufferChannel, and Impala::Util::IOBufferFile.
Definition at line 181 of file IOBuffer.h.
References Available(), mBuffer, and mPosition.
Referenced by Impala::Util::DatabaseReadNative(), Impala::Util::FileCopyRemoteToLocal(), Impala::Application::Videolympics::RawImageDataset::GetImage(), Impala::Core::ImageSet::ImageSet::GetImageData(), Impala::Core::Array::ImageArchiveFile::GetImageData(), Impala::Core::Array::ImageArchiveFileFset::GetSegmentBuf(), Impala::Core::ImageSet::InterestPointProc::HandleDoneDir(), Impala::Core::VideoSet::InterestPointProc::HandleDoneFile(), Impala::Core::Array::ImageArchiveFileFset::ImageArchiveFileFset(), Impala::Application::LoadAverages(), Impala::Core::Training::ApplyConceptsHelperKernels::LoadInfoFile(), Impala::Core::Stream::LavcProtocolImpl::Read(), Impala::Core::Table::Read(), Impala::Core::Column::Read(), Impala::Core::Stream::RgbDataSrcInfo::ReadInfo(), Impala::Core::Array::ReadJpg(), Impala::Persistency::File::ReadNative(), Impala::Core::Array::ReadPgm(), Impala::Core::Array::ReadPng(), Impala::Sandbox::Koen::ReadPointListFromBuffer(), Impala::Sandbox::Koen::ReadPointListFromFile(), Impala::Core::Array::ReadRaw(), Impala::Core::Array::ReadRawArrayType(), Impala::Core::Array::ReadRawList(), Impala::Core::Array::ReadRawListVar(), Impala::Core::Array::ReadRawListVarIndex(), Impala::Core::Feature::InterestPointFeature::SetCodebook(), Impala::Core::Array::SkipEmpty(), Impala::Application::DataTransfer::TransferLocalToServer(), Impala::Application::DataTransfer::TransferServerToLocal(), and WriteIOBufferToChannel().
00182 {
00183 Int64 available = Available();
00184 if (available < bytesToRead)
00185 bytesToRead = available;
00186 memcpy(buf, mBuffer + mPosition, bytesToRead);
00187 mPosition += bytesToRead;
00188 return bytesToRead;
00189 }
Here is the call graph for this function: