Esempio n. 1
0
        protected virtual void OnSend(IBufferManager bufferManager, byte[] buffer, int offset, int count)
        {
            //获取总大小
            int totalLength = sizeof(int) + count;

            bufferManager.WriteInt(totalLength, false);
            bufferManager.WriteBuffer(buffer, offset, count);
        }