summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Core/FileAPI.hxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-10 15:41:08 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-10 15:41:08 +0100
commit5468ca71a59c9e24c1d392554e8f97f0c1705394 (patch)
tree1e8af47da852d4ad02a2ea48a967694c7bfc19c3 /Public/Kits/System.Core/FileAPI.hxx
parent94d7585ae766d777f41d07b1a98051d12a6a0256 (diff)
Kernel: Reworked StorageKit to add AHCI support.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Kits/System.Core/FileAPI.hxx')
-rw-r--r--Public/Kits/System.Core/FileAPI.hxx40
1 files changed, 40 insertions, 0 deletions
diff --git a/Public/Kits/System.Core/FileAPI.hxx b/Public/Kits/System.Core/FileAPI.hxx
new file mode 100644
index 00000000..66ecef22
--- /dev/null
+++ b/Public/Kits/System.Core/FileAPI.hxx
@@ -0,0 +1,40 @@
+/* -------------------------------------------
+
+ Copyright Mahrouss Logic
+
+------------------------------------------- */
+
+#ifndef _SYSTEM_KIT_HCORE_FILE_HPP
+#define _SYSTEM_KIT_HCORE_FILE_HPP
+
+#include <CompilerKit/CompilerKit.hpp>
+#include <NewKit/Defines.hpp>
+
+using namespace HCore;
+
+/// @brief SOM class, translated to C++
+
+class HFile final {
+ public:
+ explicit HFile(const char *path);
+ ~HFile();
+
+ public:
+ HCORE_COPY_DEFAULT(HFile);
+
+ 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 HFile *HFilePtr;
+
+#endif // ifndef _SYSTEM_KIT_HCORE_FILE_HPP