/// <summary>
        /// Reads <c>byte</c> from the stream.
        /// </summary>
        public unsafe byte ReadByte()
        {
            if (blockRemaining > 1)
            {
                position++;
                blockRemaining--;
                return(BaseReader.ReadByte());
            }
            else
            {
                byte value;

                ReadBytes(&value, 1);
                return(value);
            }
        }
        /// <summary>
        /// Reads <c>byte</c> from the stream.
        /// </summary>
        public byte ReadByte()
        {
            byte[] buffer = MoveInternal(1);
            byte   value;

            if (buffer != null)
            {
                value = buffer[0];
            }
            else
            {
                value = BaseReader.ReadByte();
            }
            CheckMoveReader();
            return(value);
        }
Exemple #3
0
 public byte ReadByte() => BaseReader.ReadByte();