static int ReadBytes(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Framework.LuaBuffer obj = (Framework.LuaBuffer)ToLua.CheckObject <Framework.LuaBuffer>(L, 1); byte[] o = obj.ReadBytes(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ReadBytes(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.LuaBuffer.ReadBytes"); #endif try { ToLua.CheckArgsCount(L, 1); Framework.LuaBuffer obj = (Framework.LuaBuffer)ToLua.CheckObject <Framework.LuaBuffer>(L, 1); byte[] o = obj.ReadBytes(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }