Skip to content

Commit

Permalink
pht: add Prefix::flagsToString method for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sim590 committed Apr 3, 2017
1 parent 625b09b commit c0e39b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/opendht/indexation/pht.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ ee *
}

std::string toString() const;
std::string flagsToString() const;

size_t size_ {0};

Expand Down
1 change: 1 addition & 0 deletions src/indexation/pht.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ std::string Prefix::firstBitsToString(const Blob &bl, size_t len) const {
}

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

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

0 comments on commit c0e39b5

Please sign in to comment.