Esempio n. 1
0
        public _x05(BinaryReader log, long chunkOffset, LogRoot root, INode parent)
        {
            this.Position = log.BaseStream.Position;
            this.Type     = log.ReadByte();
            short length = log.ReadInt16();

            this.SelfEnclosed = true;

            this.LogRoot = root;

            this.TagState = root.TagState;

            IType type = null;

            switch (this.Type)
            {
            case 0x01:
                type = new Type0x01(log, length, false);
                break;

            default:
                throw new Exception("Don't know type: " + this.Type);
            }

            this.String = type.String;
            this.Length = ((length) * 2) + 4;
        }
Esempio n. 2
0
        public _x05(BinaryReader log, long chunkOffset, LogRoot root, INode parent)
        {
            this.Position = log.BaseStream.Position;
            this.Type  = log.ReadByte();
            short length = log.ReadInt16();
            this.SelfEnclosed = true;

            this.LogRoot = root;

            this.TagState = root.TagState;

            IType type = null;
            switch(this.Type)
            {
            case 0x01:
                type = new Type0x01(log, length, false);
                break;
            default:
                throw new Exception("Don't know type: " + this.Type);
            }

            this.String = type.String;
            this.Length =  ((length)*2) + 4;
        }