BACnet.Tagging.TagReader.AtCloseTag C# (CSharp) Метод

AtCloseTag() публичный Метод

Checks whether the next tag is a close tag with a certain tag number
public AtCloseTag ( byte tag ) : bool
tag byte The tag number to check for, or 255 for no tag
Результат bool
        public bool AtCloseTag(byte tag)
        {
            // terminate if we are at the end of the stream, since
            // we can't possibly have another tag
            if (!_hasHeader && _reader.PeekChar() == -1)
                return false;
            else
            {
                _peekHeader();
                return (_isContext && _tagNumber == tag && _lvt == LVT.Type && _type == TagType.Close);
            }
        }