Exemplo n.º 1
0
        private void ReadTagTable()
        {
            if (!_reader.Seek(128))
            {
                return;
            }

            var count = _reader.ReadLong();

            for (var i = 0; i < count; i++)
            {
                var tag = _reader.ReadLong();
                switch (tag)
                {
                case 0x63707274:
                    _data.Copyright = ReadTag();
                    break;

                case 0x64657363:
                    _data.Description = ReadTag();
                    break;

                case 0x646D6E64:
                    _data.Manufacturer = ReadTag();
                    break;

                case 0x646D6464:
                    _data.Model = ReadTag();
                    break;

                default:
                    _reader.Skip(8);
                    break;
                }
            }
        }
Exemplo n.º 2
0
 private uint ReadLong()
 => _reader.ReadLong() ?? 0;