summaryrefslogtreecommitdiff
path: root/Runtime/Scripting/Common/DataBuffer.bind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Scripting/Common/DataBuffer.bind.cpp')
-rw-r--r--Runtime/Scripting/Common/DataBuffer.bind.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/Runtime/Scripting/Common/DataBuffer.bind.cpp b/Runtime/Scripting/Common/DataBuffer.bind.cpp
new file mode 100644
index 0000000..5a5c30a
--- /dev/null
+++ b/Runtime/Scripting/Common/DataBuffer.bind.cpp
@@ -0,0 +1,19 @@
+#include "Runtime/Common/DataBuffer.h"
+
+LUA_BIND_REGISTRY(DataBuffer)
+{
+ LUA_BIND_REGISTER_METHODS(state,
+ { "GetLength", _GetLength }
+ );
+}
+
+LUA_BIND_POSTPROCESS(DataBuffer)
+{
+}
+
+LUA_BIND_IMPL_METHOD(DataBuffer, _GetLength)
+{
+ LUA_BIND_PREPARE(L, DataBuffer);
+ state.Push(self->length);
+ return 1;
+} \ No newline at end of file