summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Core/FileAPI.hxx
blob: 66ecef223e0a82204a6856837c6761cd93d42b40 (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
/* -------------------------------------------

    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