summaryrefslogtreecommitdiff
path: root/Runtime/Common
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
parent601442f94fc0dcfdc5a117c5f87d90b156d53045 (diff)
+ shader command
Diffstat (limited to 'Runtime/Common')
-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);