示例#1
0
            public int GetLength(Byte[] headBytes)
            {
                var nsp = new Utilities.NetStreamProcess(headBytes);

                nsp.PopInt32();
                nsp.PopInt32();
                return(nsp.PopInt32());
            }
示例#2
0
            private void ParsePacket(Byte[] bytes)
            {
                var nsp = new Utilities.NetStreamProcess(bytes);

                base._Pack_StartCode = (uint)nsp.PopInt32();
                base._Pack_Version   = (uint)nsp.PopInt32();
                base._Pack_Length    = (uint)nsp.PopInt32();

                base._Pack_CmdID   = (uint)nsp.PopInt32();
                this._Pack_Result  = (uint)nsp.PopInt32();
                base._Pack_Data    = nsp.PopBytes((int)base._Pack_Length - _minSize);
                base._Pack_EndCode = (uint)nsp.PopInt32();

                _lastCmdId = base._Pack_CmdID;
            }