Home
last modified time | relevance | path

Searched refs:file_binary_hash (Results 1 – 6 of 6) sorted by relevance

/dports/misc/hashdb/hashdb-3.1.0-8-g1da1b9f/test/
H A Dlmdb_other_managers_test.cpp160 std::string file_binary_hash; in lmdb_source_id_manager() local
168 TEST_EQ(file_binary_hash, ""); in lmdb_source_id_manager()
199 file_binary_hash = manager.next_source(file_binary_hash); in lmdb_source_id_manager()
201 file_binary_hash = manager.next_source(file_binary_hash); in lmdb_source_id_manager()
203 file_binary_hash = manager.next_source(file_binary_hash); in lmdb_source_id_manager()
204 TEST_EQ(file_binary_hash, ""); in lmdb_source_id_manager()
207 file_binary_hash = manager.next_source(file_binary_hash); in lmdb_source_id_manager()
208 TEST_EQ(file_binary_hash, "") in lmdb_source_id_manager()
212 TEST_EQ(file_binary_hash, "") in lmdb_source_id_manager()
223 std::string file_binary_hash; in lmdb_source_data_manager() local
[all …]
/dports/misc/hashdb/hashdb-3.1.0-8-g1da1b9f/src/
H A Dimport_tab.cpp91 std::string file_binary_hash = hashdb::hex_to_bin(file_hash_string); in import_tab() local
92 if (file_binary_hash.size() == 0) { in import_tab()
99 if (importable_sources.find(file_binary_hash) == importable_sources.end()) { in import_tab()
101 if (manager.has_source(file_binary_hash)) { in import_tab()
106 importable_sources.insert(file_binary_hash); in import_tab()
111 if (importable_sources.find(file_binary_hash) == importable_sources.end()) { in import_tab()
136 manager.insert_source_data(file_binary_hash, 0, "", 0, 0); in import_tab()
139 manager.insert_source_name(file_binary_hash, repository_name, filename); in import_tab()
143 file_binary_hash); in import_tab()
H A Dadder_set.hpp60 void add_source_data(const std::string& file_binary_hash) { in add_source_data() argument
69 file_binary_hash, filesize, file_type, in add_source_data()
74 file_binary_hash, filesize, file_type, in add_source_data()
83 manager_c->insert_source_data(file_binary_hash, filesize, file_type, in add_source_data()
88 void add_source_names(const std::string& file_binary_hash) { in add_source_names() argument
92 manager_a->find_source_names(file_binary_hash, names); in add_source_names()
95 manager_c->insert_source_name(file_binary_hash, it->first, it->second); in add_source_names()
99 manager_b->find_source_names(file_binary_hash, names); in add_source_names()
102 manager_c->insert_source_name(file_binary_hash, it->first, it->second); in add_source_names()
H A Dcommands.hpp912 std::string file_binary_hash = hashdb::hex_to_bin(hex_file_hash); in hash_table() local
919 bool has_source_data = manager.find_source_data(file_binary_hash, in hash_table()
952 if (it->file_hash == file_binary_hash) { in hash_table()
1042 std::string file_binary_hash = hashdb::hex_to_bin("00"); in add_random() local
1043 manager.insert_source_name(file_binary_hash, "add_random_repository_name", in add_random()
1045 manager.insert_source_data(file_binary_hash, 0, "", 0, 0); in add_random()
1057 manager.insert_hash(random_binary_hash(), 0.0, "", file_binary_hash); in add_random()
1130 std::string file_binary_hash = hashdb::hex_to_bin("00"); in add_same() local
1131 manager.insert_source_name(file_binary_hash, "add_same_repository_name", in add_same()
1133 manager.insert_source_data(file_binary_hash, 0, "", 0, 0); in add_same()
[all …]
/dports/misc/hashdb/hashdb-3.1.0-8-g1da1b9f/src_libhashdb/
H A Dlmdb_source_id_manager.hpp92 bool insert(const std::string& file_binary_hash, in insert() argument
96 if (file_binary_hash.size() == 0) { in insert()
111 context.key.mv_size = file_binary_hash.size(); in insert()
183 if (file_binary_hash.size() == 0) { in find()
193 context.key.mv_size = file_binary_hash.size(); in find()
255 std::string file_binary_hash = std::string( in first_source() local
258 return file_binary_hash; in first_source()
276 std::string next_source(const std::string& file_binary_hash) const { in next_source()
278 if (file_binary_hash == "") { in next_source()
289 context.key.mv_size = file_binary_hash.size(); in next_source()
[all …]
H A Dlmdb_source_data_manager.hpp95 const std::string& file_binary_hash, in insert() argument
119 const uint64_t file_binary_hash_size = file_binary_hash.size(); in insert()
124 std::memcpy(p, file_binary_hash.c_str(), file_binary_hash_size); in insert()
208 std::string& file_binary_hash, in find() argument
242 file_binary_hash = std::string(reinterpret_cast<const char*>(p), in find()
275 file_binary_hash = ""; in find()