diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
commit | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch) | |
tree | eaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/MMIO.h | |
download | t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip |
initial commit
Diffstat (limited to 'src/T2DLL/MMIO.h')
-rw-r--r-- | src/T2DLL/MMIO.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/T2DLL/MMIO.h b/src/T2DLL/MMIO.h new file mode 100644 index 0000000..11303fa --- /dev/null +++ b/src/T2DLL/MMIO.h @@ -0,0 +1,54 @@ +#pragma once +#include "common.h" + +class CMMChunk { +protected: + CMMChunk(); +public: + CMMChunk& operator=(const CMMChunk&); +}; +class CMMIdChunk { +public: + CMMIdChunk& operator=(const CMMIdChunk&); + CMMIdChunk(char, char, char, char); + CMMIdChunk(const char*, unsigned int); +}; +class CMMTypeChunk { +public: + CMMTypeChunk& operator=(const CMMTypeChunk&); + CMMTypeChunk(char, char, char, char); + CMMTypeChunk(const char*, unsigned int); +}; +class CMMIOInfo { +public: + CMMIOInfo& operator=(const CMMIOInfo&); + CMMIOInfo(); +}; +class CMMMemoryIOInfo { +public: + CMMMemoryIOInfo& operator=(const CMMMemoryIOInfo&); + CMMMemoryIOInfo(long, unsigned long); + CMMMemoryIOInfo(char*, long, unsigned long); +}; +class CMMIO { +public: + virtual ~CMMIO(); + CMMIO(); + CMMIO(HMMIO); + CMMIO(const char*, unsigned long); + CMMIO(CMMMemoryIOInfo&); + unsigned int Close(unsigned int); + long Read(char*, long); + unsigned int Ascend(CMMChunk&, unsigned int); + unsigned int Descend(CMMChunk&, unsigned int); + unsigned int Descend(CMMChunk&, CMMChunk&, unsigned int); + long Seek(long, int); + long SendMessageA(unsigned int, long, long); + unsigned int SetBuffer(char*, long, unsigned int); + long Write(const char*, long); + unsigned int GetInfo(CMMIOInfo&, unsigned int); + unsigned int SetInfo(CMMIOInfo&, unsigned int); + unsigned int Advance(CMMIOInfo&, unsigned int); + void Open(const char*, unsigned long); + void Open(CMMMemoryIOInfo&); +}; |