Encoder.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef ADCHPP_ENCODER_H
00020 #define ADCHPP_ENCODER_H
00021
00022 namespace adchpp {
00023
00024 class Encoder
00025 {
00026 public:
00027 ADCHPP_DLL static std::string& toBase32(const uint8_t* src, size_t len, std::string& tgt);
00028 static std::string toBase32(const uint8_t* src, size_t len) {
00029 std::string tmp;
00030 return toBase32(src, len, tmp);
00031 }
00032 ADCHPP_DLL static void fromBase32(const char* src, uint8_t* dst, size_t len);
00033
00034 ADCHPP_DLL static const int8_t base32Table[256];
00035 ADCHPP_DLL static const char base32Alphabet[32];
00036 private:
00037 };
00038
00039 }
00040
00041 #endif // _ENCODER