//解包 public int UnPack() { int iRet = 0; TdrReadBuf unpackBuf = new TdrReadBuf(ref pData, datalen); TdrError.ErrorType ret = stGSPkg.unpack(ref unpackBuf, 0); if (ret != TdrError.ErrorType.TDR_NO_ERROR) { System.Console.WriteLine(TdrError.getErrorString(ret)); return((int)ret); } Cmd = stGSPkg.wCmdId; ISeq = stGSPkg.iSeq; Eno = stGSPkg.iEno; return(iRet); }