static int get_buffer(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DNet.VideoFrameData obj = (DNet.VideoFrameData)o; byte[] ret = obj.buffer; LuaDLL.tolua_pushlstring(L, ret, ret.Length); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index buffer on a nil value")); } }
static int QPYX__CreateDNet_VideoFrameData_YXQP(IntPtr L_YXQP) { try { int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP); if (QPYX_count_YXQP == 1) { byte[] QPYX_arg0_YXQP = ToLua.CheckByteBuffer(L_YXQP, 1); DNet.VideoFrameData QPYX_obj_YXQP = new DNet.VideoFrameData(QPYX_arg0_YXQP); ToLua.PushObject(L_YXQP, QPYX_obj_YXQP); return(1); } else { return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to ctor method: DNet.VideoFrameData.New")); } } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int _CreateDNet_VideoFrameData(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { byte[] arg0 = ToLua.CheckByteBuffer(L, 1); DNet.VideoFrameData obj = new DNet.VideoFrameData(arg0); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: DNet.VideoFrameData.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int QPYX_get_buffer_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); DNet.VideoFrameData QPYX_obj_YXQP = (DNet.VideoFrameData)QPYX_o_YXQP; byte[] QPYX_ret_YXQP = QPYX_obj_YXQP.buffer; LuaDLL.tolua_pushlstring(L_YXQP, QPYX_ret_YXQP, QPYX_ret_YXQP.Length); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index buffer on a nil value")); } }