// ByteDataObj.h: interface for the CByteDataObj class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_BYTEDATAOBJ_H__A71C88C6_A81A_4696_9922_802A8B1C119A__INCLUDED_) #define AFX_BYTEDATAOBJ_H__A71C88C6_A81A_4696_9922_802A8B1C119A__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 namespace Caldron { namespace Base { const long UINT_SIZE = (long)sizeof(unsigned char); /* ********************************************************************* * CByteDataObj * ÆÄÀÏ : ByteDataObj.h * ±â´É : Caldron Engine³» CResourceMgr ¿¡¼­ ÀоîµéÀÌ´Â ¸®¼Ò½ºµéÀÌ ÀúÀå µÇ´Â ±âº» ÇüÅÂ. CLoadedObj¸¦ »ó¼ÓÇÑ °¢ ¸®¼Ò½º µéÀÇ obj µéÀÇ Load ·çƾ¿¡¼­ °¢ ¸®¼Ò½º¿¡ ¾Ë¸ÂÀº ÇüÅ·Πº¯È¯ ·Îµå µÈ´Ù. * ÀÛ¼ºÀÏ : 2004.01.06 * history : wizardbug ( 2004.01.06) ********************************************************************** */ class CByteDataObj { public: CByteDataObj(); virtual ~CByteDataObj(); bool LoadByte(char *strFileName,long lOffset = 0 ); long GetByteSize() { return m_lSize; } long GetReadPos() { return m_lReadPos;} void SetReadPos(long lPos) { m_lReadPos = lPos;} unsigned char *GetReadPtr(); long Read(void *ptr,size_t UnitSize,int iNum); unsigned char *m_pBytes; long m_lSize; long m_lReadPos; }; }} #endif // !defined(AFX_BYTEDATAOBJ_H__A71C88C6_A81A_4696_9922_802A8B1C119A__INCLUDED_)