summaryrefslogtreecommitdiff
path: root/node/Utils.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-08-21 08:13:48 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-08-21 08:13:48 -0400
commit2536352e5d166719acc87535ed17a805e7bd3c26 (patch)
treeeb676d506f419c410e0dda711273f5dcfcc6bb79 /node/Utils.hpp
parentdbb509a30234059fb6de10cfcd9ba1aade6a0138 (diff)
downloadinfinitytier-2536352e5d166719acc87535ed17a805e7bd3c26.tar.gz
infinitytier-2536352e5d166719acc87535ed17a805e7bd3c26.zip
Make that an arbitrary tag to identify persistent taps...
Diffstat (limited to 'node/Utils.hpp')
-rw-r--r--node/Utils.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node/Utils.hpp b/node/Utils.hpp
index 76448294..ff88124b 100644
--- a/node/Utils.hpp
+++ b/node/Utils.hpp
@@ -118,6 +118,7 @@ public:
* @return Number of characters actually written
*/
static unsigned int unhex(const char *hex,void *buf,unsigned int len);
+ static inline unsigned int unhex(const std::string &hex,void *buf,unsigned int len) { return unhex(hex.c_str(),buf,len); }
/**
* @param buf Buffer to fill