Ejemplo n.º 1
0
        /// <summary>
        /// Peeks at the next tag in the stream. If it matches <paramref name="tag"/>,
        /// the tag is consumed and the method returns <c>true</c>; otherwise, the
        /// stream is left in the original position and the method returns <c>false</c>.
        /// </summary>
        public bool MaybeConsumeTag(uint tag)
        {
            var span = new ReadOnlySpan <byte>(buffer);

            return(ParsingPrimitives.MaybeConsumeTag(ref span, ref state, tag));
        }