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 505B

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