INNER CODE UNIT · C++

key_len

fbreitwieser/krakenuniq · src/db_shrink.cpp:63

  key_len = key_bits / 8 + !! (key_bits % 8);
  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;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…