00001 /* 00002 * Copyright (c) 2010 Remko Tronçon 00003 * Licensed under the GNU General Public License v3. 00004 * See Documentation/Licenses/GPLv3.txt for more information. 00005 */ 00006 00007 #pragma once 00008 00009 #include <Swiften/Base/API.h> 00010 #include <Swiften/Base/ByteArray.h> 00011 00012 namespace Swift { 00013 class SWIFTEN_API Hexify { 00014 public: 00015 static std::string hexify(unsigned char byte); 00016 static std::string hexify(const ByteArray& data); 00017 static ByteArray unhexify(const std::string& hexstring); 00018 }; 00019 }