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

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

Definition at line 112 of file RgbDataSrcInfo.h.

References ILOG_ERROR.

Referenced by DumpIndexHashes().

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


Generated on Fri Mar 19 11:17:24 2010 for ImpalaSrc by  doxygen 1.5.1