Microsoft.Azure.Amqp.BufferListStream.ReadByte C# (CSharp) Method

ReadByte() public method

public ReadByte ( ) : int
return int
        public override int ReadByte()
        {
            this.ThrowIfDisposed();
            if (this.position >= this.length)
            {
                return -1;
            }

            ArraySegment<byte> segment = this.bufferList[this.readArray];
            int value = segment.Array[segment.Offset + this.readOffset];
            this.Advance(1, segment.Count);
            return value;
        }