2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
#ifndef __CCB_CCDATA_H__
|
|
|
|
#define __CCB_CCDATA_H__
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
2012-09-21 17:01:19 +08:00
|
|
|
#include "ExtensionMacros.h"
|
2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
NS_CC_EXT_BEGIN
|
|
|
|
|
|
|
|
class CCData : public cocos2d::CCObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CCData(unsigned char *pBytes, const unsigned long nSize);
|
|
|
|
CCData(CCData *pData);
|
|
|
|
~CCData();
|
|
|
|
|
|
|
|
unsigned char* getBytes();
|
|
|
|
|
|
|
|
private:
|
|
|
|
unsigned char* m_pBytes;
|
|
|
|
unsigned long m_nSize;
|
|
|
|
};
|
|
|
|
|
|
|
|
NS_CC_EXT_END
|
|
|
|
|
|
|
|
#endif // __CCB_CCDATA_H__
|