Advertisement
Guest User

BiteRepresent

a guest
Oct 22nd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. /*
  2. *   Module Name: BiteRepresent
  3. *   Use: Converts a byte vector to a string and reverses.
  4. *   Developer: Donkey Death Jam
  5. */
  6.  
  7. #pragma once
  8.  
  9. #include <string>
  10. #include <vector>
  11. #include <map>
  12.  
  13. using namespace std;
  14. typedef unsigned char BYTE;
  15.  
  16. class BiteRepresent
  17. {
  18. public:
  19.     static void Initialize();
  20.     static string ByteToString(vector<BYTE> input);
  21.     static vector<BYTE> StringToByte(string string);
  22.  
  23. private:
  24.     static string GetStringRepresentation(string input);
  25.     static BYTE GetByteRepresentation(string input);
  26.     static vector<string> SplitString(string text, char sep);
  27.     static map<int, string> _NUMBERKEYMAP;
  28.     static map<string, int> _STRINGKEYMAP;
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement