diff options
author | chai <chaifix@163.com> | 2021-10-31 17:13:50 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-31 17:13:50 +0800 |
commit | 4b24de9ef863f54eb09a5fa1f18e2905cedcc439 (patch) | |
tree | 71a816c891ea355529a6a4e0665e0137b4f4810e /Runtime/Common | |
parent | 601442f94fc0dcfdc5a117c5f87d90b156d53045 (diff) |
+ shader command
Diffstat (limited to 'Runtime/Common')
-rw-r--r-- | Runtime/Common/DataBuffer.h | 9 |
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); |