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

virtual Int64 Impala::Util::IOBufferFile::Write ( const void *  buf,
Int64  bytesToWrite 
) [inline, virtual]

Reimplemented from Impala::Util::IOBuffer.

Definition at line 223 of file IOBufferFile.h.

References FTell(), ILOG_ERROR, mFile, and Impala::Util::IOBuffer::SetPositionAndSize().

Referenced by Impala::Application::FileServer::AcceptRequest(), Impala::Application::DataServer::AcceptRequest(), and Impala::Util::FileCopyRemoteToLocal().

00224     {
00225         size_t bytesWritten = fwrite(buf, 1, bytesToWrite, mFile);
00226         if (bytesWritten != bytesToWrite)
00227             ILOG_ERROR("Bytes written to file (" << bytesWritten << ") " <<
00228             "differs from bytes to write (" << bytesToWrite << ")");
00229         SetPositionAndSize(FTell(mFile));
00230         return bytesWritten;
00231     }

Here is the call graph for this function:


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