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.

ArrayUtils.h 568B

123456789101112131415161718192021222324252627
  1. //
  2. // Created by robin on 7/23/16.
  3. //
  4. #ifndef MIFARE_TOOLS_ARRAYUTILS_H
  5. #define MIFARE_TOOLS_ARRAYUTILS_H
  6. namespace LibNfc
  7. {
  8. namespace Utils
  9. {
  10. class ArrayUtils
  11. {
  12. public:
  13. static void setArrayBit(char *buf, const char &bitPosition, const bool &value);
  14. static void setArrayBit(unsigned char *buf, const char &bitPosition, const bool &value);
  15. static bool getArrayBit(const char *buf, const char &bitPosition);
  16. static bool getArrayBit(const unsigned char *buf, const char &bitPosition);
  17. };
  18. }; // Utils
  19. }; // LibNfc
  20. #endif //MIFARE_TOOLS_ARRAYUTILS_H