diff options
author | chai <chaifix@163.com> | 2021-10-26 11:27:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-26 11:27:58 +0800 |
commit | 32345800737b668011a87328cd3dcce59ec2934c (patch) | |
tree | e1bbd47ae775f1268447f1c1011ab10492ee9197 /Runtime/Common/DataBuffer.h | |
parent | ef7aedf5f272c52247d8ee9522d7b2896d21af63 (diff) |
*misc
Diffstat (limited to 'Runtime/Common/DataBuffer.h')
-rw-r--r-- | Runtime/Common/DataBuffer.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Runtime/Common/DataBuffer.h b/Runtime/Common/DataBuffer.h index 330128f..591fe89 100644 --- a/Runtime/Common/DataBuffer.h +++ b/Runtime/Common/DataBuffer.h @@ -6,9 +6,21 @@ class DataBuffer : public LuaBind::NativeClass<DataBuffer> { public: - DataBuffer(LuaBind::VM* vm); - ~DataBuffer(); + DataBuffer(LuaBind::VM* vm) + :NativeClass<DataBuffer>(vm) + {}; + ~DataBuffer() + { + delete data; + } char* data; int length; + +private: + + LUA_BIND_DECL_CLASS(DataBuffer); + + LUA_BIND_DECL_METHOD(_GetLength); + };
\ No newline at end of file |