diff options
Diffstat (limited to 'Public/Kits/System.Core/FileAPI.hxx')
| -rw-r--r-- | Public/Kits/System.Core/FileAPI.hxx | 40 |
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 |
