Пример #1
0
        public XmlTkString(IStreamReader reader)
        {
            this.xtHeader = new XmlTkHeader(reader);

            this.cchValue = reader.ReadUInt32();

            this.rgbValue = reader.ReadBytes((int)this.cchValue * 2);
        }
Пример #2
0
        public XmlTkBlob(IStreamReader reader)
        {
            this.xtHeader = new XmlTkHeader(reader);

            this.cbBlob = reader.ReadUInt32();

            this.rgbBlob = reader.ReadBytes((int)this.cbBlob);
        }
Пример #3
0
        public XmlTkBool(IStreamReader reader)
        {
            this.xtHeader = new XmlTkHeader(reader);

            this.dValue = (reader.ReadByte() > 0);

            //unused
            reader.ReadByte();
        }
Пример #4
0
        public XmlTkDouble(IStreamReader reader)
        {
            this.xtHeader = new XmlTkHeader(reader);

            //unused
            reader.ReadBytes(4);

            this.dValue = reader.ReadDouble();
        }
Пример #5
0
        public UInt16 getNextXmlTkTag(IStreamReader reader)
        {
            long        pos    = reader.BaseStream.Position;
            XmlTkHeader header = new XmlTkHeader(reader);

            reader.BaseStream.Position = pos;

            return(header.xmlTkTag);
        }
Пример #6
0
 public XmlTkStart(IStreamReader reader)
 {
     this.xtHeader = new XmlTkHeader(reader);
 }
Пример #7
0
        public XmlTkDWord(IStreamReader reader)
        {
            this.xtHeader = new XmlTkHeader(reader);

            this.dValue = reader.ReadInt32();
        }
Пример #8
0
        public XmlTkToken(IStreamReader reader)
        {
            this.xtHeader = new XmlTkHeader(reader);

            this.dValue = reader.ReadUInt16();
        }