INNER CODE UNIT · C++
pair_size
fbreitwieser/krakenuniq · src/db_shrink.cpp:64
pair_size = key_len + val_len;
if (Output_count > key_count) {
errx(EX_DATAERR, "Requested new key count %llu larger than old key count %llu, aborting...",
(long long unsigned int) Output_count,
(long long unsigned int) key_count);
}
// Change key count
memcpy(buffer + 48, &Output_count, 8);
// Copy input header to output file
ofstream output_file(Output_DB_filename.c_str(), std::ofstream::binary);
output_file.write(buffer, header_size);
delete[] buffer;
// Prep buffer for scan/select loop