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