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 }
|