Пример #1
0
            public void SetBuffer(byte[] _buffer, int _offset)
            {
                DataUsed    = false;
                mCSLEObject = null;
                mIndex      = 0;
                int tindex = _offset;

                mLen    = BufferBase.SReadShort(_buffer, tindex);
                tindex += sizeof(short);
                mCmd    = BufferBase.SReadShort(_buffer, tindex);
                tindex += sizeof(short);
                if (mData == null || mLen > mData.Length)
                {
                    mData = new byte[mLen];
                }
                else
                {
                    mData.Initialize();
                }
                Array.Copy(_buffer, tindex, mData, 0, mLen);
            }