Skip to content

Commit c0e39b5

Browse files
committed
pht: add Prefix::flagsToString method for debug
1 parent 625b09b commit c0e39b5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/opendht/indexation/pht.h

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ ee *
200200
}
201201

202202
std::string toString() const;
203+
std::string flagsToString() const;
203204

204205
size_t size_ {0};
205206

src/indexation/pht.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ std::string Prefix::firstBitsToString(const Blob &bl, size_t len) const {
4848
}
4949

5050
std::string Prefix::toString() const { return firstBitsToString(content_, size_); }
51+
std::string Prefix::flagsToString() const { return firstBitsToString(flags_, size_); }
5152

5253
void Pht::Cache::insert(const Prefix& p) {
5354
size_t i = 0;

0 commit comments

Comments
 (0)