summaryrefslogtreecommitdiffstats
path: root/include/TypeConverter.h
diff options
context:
space:
mode:
authorAlexey Gavrilov <rebovas@yahoo.com>2024-02-22 14:18:39 +0700
committerAlexey Gavrilov <rebovas@yahoo.com>2024-02-22 14:18:39 +0700
commitcbcbf6e7d614ecf94dd7e1b9033f8d599f48662e (patch)
tree59872849d347794cc58c8ad3aa201a14e0db526f /include/TypeConverter.h
parentc18781e37e6bfe153e7c0f2bc8b04df0aecf151d (diff)
Implement support of cpuid instruction + include folder + some updates
Diffstat (limited to 'include/TypeConverter.h')
-rw-r--r--include/TypeConverter.h22
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