static int get_content(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameFramework.MessageBody_ByteBuffer obj = (GameFramework.MessageBody_ByteBuffer)o;
            GameFramework.ByteBuffer             ret = obj.content;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index content on a nil value"));
        }
    }
        /// <summary>
        /// 发送消息
        /// </summary>
        private void ServerRequest(Message _msg)
        {
            MessageBody_ByteBuffer _bb = _msg.body as MessageBody_ByteBuffer;

            if (_bb == null)
            {
                Utility.LogError("没有请求数据体或者消息结构错误:", _msg.body.key);
                return;
            }

            string _key = _msg.body.key;

            if (!solution.ContainsKey(_key))
            {
                Utility.LogError("不存在的服务器连接:", _key);
                return;
            }

            ByteBuffer _buffer = new ByteBuffer(_bb.content.ToBytes());

            solution[_key].Send(_buffer);
        }
    static int _CreateGameFramework_MessageBody_ByteBuffer(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                string arg0 = ToLua.CheckString(L, 1);
                GameFramework.ByteBuffer             arg1 = (GameFramework.ByteBuffer)ToLua.CheckObject <GameFramework.ByteBuffer>(L, 2);
                GameFramework.MessageBody_ByteBuffer obj  = new GameFramework.MessageBody_ByteBuffer(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GameFramework.MessageBody_ByteBuffer.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }