Exemplo n.º 1
0
        public void Read(IByteParser parser, out string value, out string error)
        {
            if (!parser.TryDecode(_buffer, _currentIndex, out value, out int bytesRead, out error))
            {
                throw new Exception("Unable to parse :" + error);
            }

            _currentIndex += bytesRead;
        }
 public EditableTagItem(IByteParser parser, byte[] value)
 {
     _originalValue = value;
     _parser        = parser;
     isValid        = _parser.TryDecode(_originalValue, 0, out _valueAsString, out _, out _);
 }