From 55059428bfd6a18451bc1ed3ee64e7bb04c395cd Mon Sep 17 00:00:00 2001 From: amlal Date: Sat, 16 Mar 2024 14:22:21 +0100 Subject: HCR-14: See below. - Pretty big modifications, add kernel mouse. Signed-off-by: amlal --- Public/Kits/System.Core/File.hxx | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Public/Kits/System.Core/File.hxx (limited to 'Public/Kits/System.Core/File.hxx') diff --git a/Public/Kits/System.Core/File.hxx b/Public/Kits/System.Core/File.hxx new file mode 100644 index 00000000..2f799330 --- /dev/null +++ b/Public/Kits/System.Core/File.hxx @@ -0,0 +1,42 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#ifndef _SYSTEM_KIT_HCORE_FILE_HPP +#define _SYSTEM_KIT_HCORE_FILE_HPP + +#include +#include + +using namespace HCore; + +/// @brief SOM class, translated to C++ + +namespace System { +class File final { + public: + explicit File(const char *path); + ~File(); + + public: + HCORE_COPY_DEFAULT(File); + + public: + voidPtr Read(SizeT off, SizeT sz); + void Write(voidPtr buf, SizeT off, SizeT sz); + void Seek(SizeT off); + voidPtr Read(SizeT sz); + void Write(voidPtr buf, SizeT sz); + void Rewind(); + + public: + const char *MIME(); + void MIME(const char *mime); +}; + +typedef File *FilePtr; +} // namespace System + +#endif // ifndef _SYSTEM_KIT_HCORE_FILE_HPP -- cgit v1.2.3