diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-12 16:57:37 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-12 16:57:37 -0700 |
commit | 1d37204a37b9ce58fa1ef67d4a209573e559c391 (patch) | |
tree | aec9a0a4c7cf4a3204d7407e76696d15ed32220e /node/Address.hpp | |
parent | 6b4346d1ac9c7bb25b810be4db62fc6e3d38a189 (diff) | |
download | infinitytier-1d37204a37b9ce58fa1ef67d4a209573e559c391.tar.gz infinitytier-1d37204a37b9ce58fa1ef67d4a209573e559c391.zip |
Refactoring in progress... pardon our dust...
Diffstat (limited to 'node/Address.hpp')
-rw-r--r-- | node/Address.hpp | 9 |
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); } |