Ejemplo n.º 1
0
        public CrtMlFrt(IStreamReader reader, RecordType id, ushort length)
            : base(reader, id, length)
        {
            long pos = reader.BaseStream.Position;

            this.frtHeader  = new FrtHeader(reader);
            this.cb         = reader.ReadUInt32();
            this.xmltkChain = new XmlTkChain(reader);
            reader.ReadBytes(4); // unused

            reader.BaseStream.Position = pos + length;
        }
Ejemplo n.º 2
0
        public CrtMlFrtContinue(IStreamReader reader, RecordType id, ushort length)
            : base(reader, id, length)
        {
            // assert that the correct record type is instantiated
            Debug.Assert(this.Id == ID);

            this.FrtHeader = new FrtHeader(reader);

            this.XmlTkChain = new XmlTkChain(reader);

            //unused
            reader.ReadBytes(4);

            // assert that the correct number of bytes has been read from the stream
            Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position);
        }