blob: 88bf9bfb6c3fa8ae50a83e9517f0481df4ec3de0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
|