You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ScHex.h 474B

123456789101112131415161718192021222324
  1. //
  2. // Created by robin on 6/29/15.
  3. //
  4. #ifndef PCSC_CPPTOOLS_SCHEX_H
  5. # define PCSC_CPPTOOLS_SCHEX_H
  6. # include <string>
  7. #include "ScByteArray.h"
  8. class ScHex
  9. {
  10. public:
  11. static char hexCharToInt(const char& c);
  12. static std::string intToHexChar(const char& c);
  13. static std::string byteArrayToString(const ScByteArray& bytes, const std::string& separator = " ");
  14. static ScByteArray stringToByteArray(const std::string& str);
  15. };
  16. #endif //PCSC_CPPTOOLS_SCHEX_H