diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-28 22:49:17 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-28 22:50:22 +0100 |
| commit | 39040dde3a6eef2e9b08ce6d3c5ca23aa4566ce6 (patch) | |
| tree | 439405d1f2546320d6a2954f952284089acc398d /Public/SDK/SystemKit/FileAPI.hxx | |
| parent | 59f1fd3491c91cca9c47e9a7e61d454b685bfb6a (diff) | |
Public: ZipKit compiles correctly now.
Public: Also Did reworked System APIs.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Public/SDK/SystemKit/FileAPI.hxx')
| -rw-r--r-- | Public/SDK/SystemKit/FileAPI.hxx | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Public/SDK/SystemKit/FileAPI.hxx b/Public/SDK/SystemKit/FileAPI.hxx new file mode 100644 index 00000000..88bf9bfb --- /dev/null +++ b/Public/SDK/SystemKit/FileAPI.hxx @@ -0,0 +1,41 @@ +/* + * ======================================================== + * + * h-core + * Copyright Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#ifndef _SYSTEM_KIT_HCORE_FILE_HPP +#define _SYSTEM_KIT_HCORE_FILE_HPP + +#include <CompilerKit/Compiler.hpp> +#include <NewKit/Defines.hpp> + +using namespace hCore; + +class MeFile final +{ + public: + explicit MeFile(const char *path); + ~MeFile(); + + public: + HCORE_COPY_DEFAULT(MeFile); + + public: + void *Read(SizeT off, SizeT sz); + void Write(void *buf, SizeT off, SizeT sz); + void Seek(SizeT off); + void *Read(SizeT sz); + void Write(void *buf, SizeT sz); + void Rewind(); + + public: + void SetMIME(const char *mime); +}; + +typedef MeFile *MeFilePtr; + +#endif // ifndef _SYSTEM_KIT_HCORE_FILE_HPP |
