示例#1
0
        // PEEKING //
        #region Peeking

        /// <summary>
        /// Peeks the next byte in the buffer.
        /// </summary>
        /// <returns>The next byte.</returns>
        public byte PeekByte()
        {
            PreRead();
            NetException.Assert(position + 1 > data.Length, NetException.PastBuffer);
            return(data[position]);
        }