Apache.NMS.ActiveMQ.Commands.ActiveMQStreamMessage.InitializeReading C# (CSharp) Method

InitializeReading() private method

private InitializeReading ( ) : void
return void
        private void InitializeReading()
        {
            FailIfWriteOnlyBody();
            if(this.dataIn == null)
            {
                this.byteBuffer = new MemoryStream(this.Content, false);

                Stream target = this.byteBuffer;
                if(this.Connection != null && this.Compressed == true)
                {
                    target = this.Connection.CompressionPolicy.CreateDecompressionStream(target);
                }

                this.dataIn = new EndianBinaryReader(target);
            }
        }