summaryrefslogtreecommitdiff
path: root/Runtime/Common/DataBuffer.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-25 23:29:21 +0800
committerchai <chaifix@163.com>2021-10-25 23:29:21 +0800
commit7ecf913256fb396e3027aac3318d996a716a52ef (patch)
tree4540835c881a63b665e2a692bf30115fd29e8bb0 /Runtime/Common/DataBuffer.h
parent0816cd70ca1a213b6ed872bcf3c0bf0912473722 (diff)
+ job system
Diffstat (limited to 'Runtime/Common/DataBuffer.h')
-rw-r--r--Runtime/Common/DataBuffer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Runtime/Common/DataBuffer.h b/Runtime/Common/DataBuffer.h
new file mode 100644
index 0000000..330128f
--- /dev/null
+++ b/Runtime/Common/DataBuffer.h
@@ -0,0 +1,14 @@
+#pragma once
+#include "Runtime/Lua/LuaHelper.h"
+
+// 描述内存对象,会作为
+// 1. 多线程读取文件的返回
+class DataBuffer : public LuaBind::NativeClass<DataBuffer>
+{
+public:
+ DataBuffer(LuaBind::VM* vm);
+ ~DataBuffer();
+
+ char* data;
+ int length;
+}; \ No newline at end of file