Esempio n. 1
0
        private void ReadSubrecords(MainRecord rec, PluginFileSource source)
        {
            int defIndex = 0;

            source.StartRead(rec.dataSize);
            while (true)
            {
                if (!source.NextSubrecord())
                {
                    break;
                }
                HandleSubrecord(rec, source, ref defIndex);
            }
            source.EndRead();
        }
Esempio n. 2
0
        public override void SubrecordFound(
            Container container, PluginFileSource source
            )
        {
            int defIndex = 0;

            while (defIndex < memberDefs.Count)
            {
                bool handled = HandleSubrecord(container, source, ref defIndex);
                if (!handled)
                {
                    break;
                }
                if (!source.NextSubrecord())
                {
                    break;
                }
            }
        }