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

Int64 Impala::Core::Stream::RgbDataSrcInfo::DumpHashValue ( char *&  buffer,
const int  maxChars,
int  bytesWritten,
CString  hash 
) const [inline]

Definition at line 113 of file RgbDataSrcInfo.h.

References ILOG_ERROR.

Referenced by DumpIndexHashes().

00115     {
00116         const int hashLen = hash.size();
00117         if (bytesWritten + hashLen + 1 > maxChars) // add 1 for '\t'
00118         {
00119             ILOG_ERROR("Buffer too small (" << maxChars << 
00120                 ") to write all index hashes");
00121             return -1;
00122         }
00123         sprintf(buffer, "%s\t", hash.c_str());
00124         buffer += (hashLen + 1);
00125         int written = bytesWritten + (hashLen + 1);
00126         return written;
00127     }


Generated on Thu Jan 13 09:20:31 2011 for ImpalaSrc by  doxygen 1.5.1