-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAssetIOHandler.h
38 lines (31 loc) · 1.17 KB
/
AssetIOHandler.h
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
//-----------------------------------------------------------------
//This class only handles asset file I/O in byte form. It doesn't
//interpret the actual content it reads or writes.
//-----------------------------------------------------------------
#pragma once
//-----------------------------------------------------------------
// Include Files
//-----------------------------------------------------------------
#include <windows.h>
#include <string>
#include "pch.h"
namespace Emerald
{
class AssetIOHandler
{
protected:
BYTE* m_pBuffer;
DWORD m_bufferSize;//in byte, of course
public:
//Constructor/Destructor
AssetIOHandler();
virtual ~AssetIOHandler();
//General class functions
BOOL LoadRawAssetData(LPCWSTR lpcwFileName);
//Accessors
const BYTE* GetBuffer() { return m_pBuffer; }
void SetBuffer(BYTE* pNewBuffer) { SAFE_DELETEARRAY(m_pBuffer); m_pBuffer = pNewBuffer; }//test this!!!!!!!!!!!!
DWORD GetBufferSize() { return m_bufferSize; }
void SetBufferSize(DWORD newSize) { m_bufferSize = newSize; }
};
}