Ejemplo n.º 1
0
        public override void Read(HmeReader reader)
        {
            long streamId = reader.ReadInt64();

            System.Diagnostics.Debug.Assert(_rootStreamId == streamId);
            _idle = reader.ReadBoolean();
            reader.ReadTerminator();
        }
Ejemplo n.º 2
0
 public override void Read(HmeReader reader)
 {
     _resourceId = reader.ReadInt64();
     _keyAction  = (KeyAction)reader.ReadInt64();
     _keyCode    = reader.ReadInt64();
     _rawCode    = reader.ReadInt64();
     reader.ReadTerminator();
 }
Ejemplo n.º 3
0
        public override void Read(HmeReader reader)
        {
            _resourceId = reader.ReadInt64();
            _status     = reader.ReadInt64();
            long count = reader.ReadInt64();

            for (long i = 0; i < count; ++i)
            {
                _resourceInfo.Add(reader.ReadString(), reader.ReadString());
            }
            reader.ReadTerminator();
        }
Ejemplo n.º 4
0
        public override void Read(HmeReader reader)
        {
            long streamId = reader.ReadInt64();

            System.Diagnostics.Debug.Assert(_rootStreamId == streamId);

            TivoTree currentLevel = _parameters;

            ReadParameters(reader, currentLevel);
            _data = reader.ReadBytes((int)reader.ReadInt64());
            reader.ReadTerminator();
        }
Ejemplo n.º 5
0
        public override void Read(HmeReader reader)
        {
            long streamId = reader.ReadInt64();

            System.Diagnostics.Debug.Assert(_rootStreamId == streamId);
            long count = reader.ReadInt64();

            for (long i = 0; i < count; ++i)
            {
                _applicationInfo.Add(reader.ReadString(), reader.ReadString());
            }
            reader.ReadTerminator();
        }
Ejemplo n.º 6
0
        public override void Read(HmeReader reader)
        {
            long streamId = reader.ReadInt64();

            System.Diagnostics.Debug.Assert(_rootStreamId == streamId);
            _metricsPerResolutionInfo = reader.ReadInt64();
            _currentResolution        = new ResolutionInfo(reader.ReadInt64(),
                                                           reader.ReadInt64(), reader.ReadInt64(), reader.ReadInt64());
            SkipExtraResolutionMetrics(reader);
            long count = reader.ReadInt64();

            for (int i = 0; i < count; ++i)
            {
                _supportedResolutions.Add(new ResolutionInfo(
                                              reader.ReadInt64(), reader.ReadInt64(), reader.ReadInt64(), reader.ReadInt64()));
                SkipExtraResolutionMetrics(reader);
            }
            reader.ReadTerminator();
        }
Ejemplo n.º 7
0
        public override void Read(HmeReader reader)
        {
            _fontId          = reader.ReadInt64();
            _ascent          = reader.ReadSingle();
            _descent         = reader.ReadSingle();
            _height          = reader.ReadSingle();
            _lineGap         = reader.ReadSingle();
            _metricsPerGlyph = reader.ReadInt64();
            long count = reader.ReadInt64();

            for (long i = 0; i < count; ++i)
            {
                _glyphInfo.Add(new GlyphInfo(reader.ReadInt64(), reader.ReadSingle(), reader.ReadSingle()));
                // eat up remaining metrics
                for (long j = Tivo.Hme.GlyphInfo.FieldCount; j < _metricsPerGlyph; ++j)
                {
                    reader.ReadSingle();
                }
            }
            reader.ReadTerminator();
        }