Beispiel #1
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();
        }
        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();
        }
Beispiel #3
0
        internal static void ReadParameters(HmeReader reader, TivoTree currentLevel)
        {
            for (string value = reader.ReadString(); value.Length != 0; value = reader.ReadString())
            {
                currentLevel.AddKey(value);
                for (sbyte marker = reader.ReadSByte(); marker != endMarker; marker = reader.ReadSByte())
                {
                    switch (marker)
                    {
                    case stringMarker:
                        currentLevel.Add(value, reader.ReadString());
                        break;

                    case treeMarker:
                        TivoTree tree = new TivoTree();
                        ReadParameters(reader, tree);
                        currentLevel.Add(value, tree);
                        break;
                    }
                }
            }
        }