Esempio n. 1
0
        protected override void write()
        {
            _postStream = new BytesWriteStream();

            _postStream.setWriteLenLimit(ShineSetting.msgBufSize);
            //协议号
            _postStream.natureWriteUnsignedShort(this.getDataID());

            if (_needFullWrite)
            {
                writeBytesFull(_postStream);
            }
            else
            {
                writeBytesSimple(_postStream);
            }
        }