From 7ecf913256fb396e3027aac3318d996a716a52ef Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Oct 2021 23:29:21 +0800 Subject: + job system --- Runtime/Common/DataBuffer.cpp | 0 Runtime/Common/DataBuffer.h | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Runtime/Common/DataBuffer.cpp create mode 100644 Runtime/Common/DataBuffer.h (limited to 'Runtime/Common') diff --git a/Runtime/Common/DataBuffer.cpp b/Runtime/Common/DataBuffer.cpp new file mode 100644 index 0000000..e69de29 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 +{ +public: + DataBuffer(LuaBind::VM* vm); + ~DataBuffer(); + + char* data; + int length; +}; \ No newline at end of file -- cgit v1.1-26-g67d0