From cbcbf6e7d614ecf94dd7e1b9033f8d599f48662e Mon Sep 17 00:00:00 2001 From: Alexey Gavrilov Date: Thu, 22 Feb 2024 14:18:39 +0700 Subject: Implement support of cpuid instruction + include folder + some updates --- include/TypeConverter.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/TypeConverter.h (limited to 'include/TypeConverter.h') 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 + +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 -- cgit v1.2.3