summaryrefslogtreecommitdiffstats
path: root/include/TypeConverter.h
blob: 8b426b9b468ab7720be463dca9ec8825726ab559 (plain) (blame)
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