diff options
Diffstat (limited to 'include/TypeConverter.h')
| -rw-r--r-- | include/TypeConverter.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/TypeConverter.h b/include/TypeConverter.h new file mode 100644 index 0000000..f9db95c --- /dev/null +++ b/include/TypeConverter.h @@ -0,0 +1,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 |
