Beispiel #1
0
        public void Save(sio.FileStream fs, FileDirectoryDescriptor parent)
        {
            int i;

            misc.WriteStruct(fs, files[0].hdr);
            fs.WriteByte(0);

            misc.WriteStruct(fs, parent.hdr);
            fs.WriteByte(1);

            for (i = 1; i < files.Count; i++)
            {
                fs.CondAlign(ISO9660.logSize, files[i].RecSize);
                files[i].Save(fs);
            }
            fs.Align(ISO9660.logSize);
        }
Beispiel #2
0
        public void Save(sio.FileStream fs)
        {
            int i;

            foreach (var rec in recs)
            {
                fs.CondAlign(ISO9660.logSize, rec.RecSize);
                rec.Save(fs);
            }
            fs.Align(ISO9660.logSize);

            foreach (var rec in recs)
            {
                fs.CondAlign(ISO9660.logSize, rec.RecSize);
                rec.SaveM(fs);
            }
            fs.Align(ISO9660.logSize);

            for (i = 0; i < recs.Count; i++)
            {
                if (i == 0)
                    recs[i].files.Save(fs, recs[0].files[0]);
                else
                    recs[i].files.Save(fs, recs[i - 1].files[0]);
            }
        }
Beispiel #3
0
 public override void Save(sio.FileStream fs)
 {
     fs.WriteByte(255);
     base.Save(fs);
     fs.Align(ISO9660.logSize);
 }