From 39040dde3a6eef2e9b08ce6d3c5ca23aa4566ce6 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 28 Jan 2024 22:49:17 +0100 Subject: Public: ZipKit compiles correctly now. Public: Also Did reworked System APIs. Signed-off-by: Amlal El Mahrouss --- Public/SDK/SystemKit/FileAPI.hxx | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Public/SDK/SystemKit/FileAPI.hxx (limited to 'Public/SDK/SystemKit/FileAPI.hxx') 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 +#include + +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 -- cgit v1.2.3