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

template<class ArrayT>
void Impala::Core::Array::ReadPng ( ArrayT *&  dst,
Util::IOBuffer *  buffer 
) [inline]

Definition at line 202 of file ReadPng.h.

References ILOG_VAR, ILOG_WARN, Impala::Util::IOBuffer::Read(), ReadPngFromMemory(), and Impala::Util::IOBuffer::Size().

Referenced by ReadFile(), and ReadPng().

00203 {
00204     ILOG_VAR(Impala.Core.Array.ReadPng);
00205     size_t memBufSize = buffer->Size();
00206     char* buf = new char[memBufSize];
00207     size_t nrRead = buffer->Read(buf, memBufSize);
00208     if (nrRead != memBufSize)
00209     {
00210         ILOG_WARN("Buffer read failed");
00211         delete buf;
00212         return;
00213     }
00214     ReadPngFromMemory(dst, buf, memBufSize);
00215     delete buf;
00216 }

Here is the call graph for this function:


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