Exemplo n.º 1
0
        public Buf2RespRet Buf2Resp(int taskid, int user_context, byte[] inbuffer, int error_code, int channel_select)
        {
            MarsTaskWrapperBase scene = MarsTaskMgr.getTask(taskid);

            if (null == scene)
            {
                return(null);
            }

            return(scene.onBuf2Resp(inbuffer));
        }
Exemplo n.º 2
0
        public Req2BufRet Req2Buf(int taskid, int user_context, int error_code, int channel_select)
        {
            Req2BufRet          ret   = new Req2BufRet();
            MarsTaskWrapperBase scene = MarsTaskMgr.getTask(taskid);

            if (null == scene)
            {
                ret.bRet     = false;
                ret.nErrCode = -1;
                return(ret);
            }

            ret.outbuffer = scene.requestToByteArray();
            ret.bRet      = true;
            ret.nErrCode  = 0;
            return(ret);
        }