mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
infohash: make toHex inline
This commit is contained in:
1 parent
0d31139402
commit
0c11c25c66
1 file changed
+1
-1
@@ -354,7 +354,7 @@ private:
|
||||
|
||||
OPENDHT_PUBLIC extern const HexMap hex_map;
|
||||
|
||||
std::string
|
||||
inline std::string
|
||||
toHex(const uint8_t* data, size_t size) {
|
||||
std::string ret('\0', size * 2);
|
||||
for (size_t i=0; i<size; i++) {
|
||||
|
||||
Reference in new issue
Block a user