summaryrefslogtreecommitdiff
path: root/node/Address.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-12 16:57:37 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-12 16:57:37 -0700
commit1d37204a37b9ce58fa1ef67d4a209573e559c391 (patch)
treeaec9a0a4c7cf4a3204d7407e76696d15ed32220e /node/Address.hpp
parent6b4346d1ac9c7bb25b810be4db62fc6e3d38a189 (diff)
downloadinfinitytier-1d37204a37b9ce58fa1ef67d4a209573e559c391.tar.gz
infinitytier-1d37204a37b9ce58fa1ef67d4a209573e559c391.zip
Refactoring in progress... pardon our dust...
Diffstat (limited to 'node/Address.hpp')
-rw-r--r--node/Address.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/node/Address.hpp b/node/Address.hpp
index c63d41d9..728862da 100644
--- a/node/Address.hpp
+++ b/node/Address.hpp
@@ -194,6 +194,15 @@ public:
};
/**
+ * @param buf Buffer to fill
+ * @param len Length of buffer
+ */
+ inline void toString(char *buf,unsigned int len) const
+ {
+ Utils::snprintf(buf,len,"%.10llx",(unsigned long long)_a);
+ }
+
+ /**
* @return True if this address is not zero
*/
inline operator bool() const throw() { return (_a != 0); }