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

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

Checks whether the next tag is an open tag with a certain tag number
public AtOpenTag ( byte tag ) : bool
tag byte The tag number to check for, or 255 for no tag
Результат bool
        public bool AtOpenTag(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.Open);
            }
        }