summaryrefslogtreecommitdiff
path: root/Runtime/Common/DataBuffer.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-31 17:13:50 +0800
committerchai <chaifix@163.com>2021-10-31 17:13:50 +0800
commit4b24de9ef863f54eb09a5fa1f18e2905cedcc439 (patch)
tree71a816c891ea355529a6a4e0665e0137b4f4810e /Runtime/Common/DataBuffer.h
parent601442f94fc0dcfdc5a117c5f87d90b156d53045 (diff)
+ shader command
Diffstat (limited to 'Runtime/Common/DataBuffer.h')
-rw-r--r--Runtime/Common/DataBuffer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Runtime/Common/DataBuffer.h b/Runtime/Common/DataBuffer.h
index 7004937..7b89ab5 100644
--- a/Runtime/Common/DataBuffer.h
+++ b/Runtime/Common/DataBuffer.h
@@ -1,6 +1,12 @@
#pragma once
#include "Runtime/Lua/LuaHelper.h"
+enum EDataBufferType
+{
+ DataBufferMode_Binary, // ����\0���������\0
+ DataBufferMode_Text, // ��\0�������\0
+};
+
// �����ڴ���󣬻���Ϊ
// 1. ���̶߳�ȡ�ļ��ķ���
class DataBuffer : public LuaBind::NativeClass<DataBuffer>
@@ -17,8 +23,9 @@ public:
delete data;
}
- unsigned char* data;
+ char* data;
int length;
+ EDataBufferType type;
private:
LUA_BIND_DECL_CLASS(DataBuffer);