1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef TYPECONVERTER_H #define TYPECONVERTER_H #include <types.h> class IntConverter { private: const static unsigned int bufferSize = 21; char buffer[bufferSize]; uint8 index; void resetProps(); void writeNumberToBuffer(uint64 n); public: IntConverter(); char *intToChar(int n); char *uintToChar(const uint32 n); char *uintToChar(const uint64 n); }; #endif