SetBuffer() public method

Overwrite this object's underlying buffer with the specified buffer.
public SetBuffer ( char b, int len ) : void
b char The character array.
len int The number of characters to consider filled /// in the input buffer.
return void
        /// <summary>
        /// Read a single character.
        /// </summary>
        /// <returns>The character read.</returns>
        public char Read()
        {
            if (cb.Length == 0)
            {
                // read from underlying reader
                int readCount = reader.Read(buffer, 0, BlockSize);
                if (readCount == 0)
                {
                    throw new ApplicationException("End of stream.");
                }
                cb.SetBuffer(buffer, readCount);
            }

            char c = cb[0];

            cb.Remove(0);
            return(c);
        }