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)); }
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); }
public int OnTaskEnd(int taskid, int user_context, int error_type, int error_code) { MarsTaskMgr.onTaskEnd(taskid, error_type, error_code); return(1); }