Esempio n. 1
0
 public override void Save(RSFileWriter bw)
 {
     bw.WriteString(AudioType);
     bw.WriteInt32(p_data.Length);
     bw.WriteBytes(p_data);
     Modified = false;
 }
Esempio n. 2
0
        public override void Save(RSFileWriter bw)
        {
            bw.Log("= = = SOUND = = =\n");
            bw.WriteByte(10);
            bw.WriteString(AudioType);

            bw.WriteByte(11);
            bw.WriteInt32(p_data.Length);
            bw.WriteBytes(p_data);

            bw.WriteByte(12);
            bw.WriteString(Name);

            bw.WriteByte(13);
            bw.WriteString(FileName);

            bw.WriteByte(0);
            Modified = false;
        }
Esempio n. 3
0
        public void Save(string fileName)
        {
            using (BinaryWriter bw = new BinaryWriter(File.OpenWrite(fileName)))
            {
                RSFileWriter fw = new RSFileWriter(bw);
                // write header
                fw.WriteBytes(p_FileHeader);

                // write general data
                foreach (KeyValuePair <string, string> ps in Properties)
                {
                    fw.WriteByte(10);
                    fw.WriteString(ps.Key);
                    fw.WriteString(ps.Value);
                }

                // write objects
                fw.WriteByte(100);
                Data.Save(fw);

                fw.WriteByte(0);
            }
        }