public void SaveToWriter(BinaryWriter writer)
        {
            //writer.Write(SID2Types.StringNotNull(formatstring));
            //writer.Write(SID2Types.StringNotNull(statusstring));
            writer.Write(SID2Types.StringNotNull(speedstring));
            writer.Write(loadAddr);
            writer.Write(initAddr);
            writer.Write(playAddr);
            writer.Write(songs);
            writer.Write(startSong);
            writer.Write(sidChipBase1);
            writer.Write(sidChipBase2);
            writer.Write(currentSong);
            writer.Write(songSpeed);
            writer.Write(clockSpeed);
            writer.Write(relocStartPage);
            writer.Write(relocPages);
            writer.Write(musPlayer);
            writer.Write(sidModel);
            writer.Write(compatibility);
            writer.Write(fixLoad);
            writer.Write(numberOfInfostrings);

            writer.Write(infostring.Length);
            for (int i = 0; i < infostring.Length; i++)
            {
                writer.Write(SID2Types.StringNotNull(infostring[i]));
            }

            writer.Write(dataFileLen);
            writer.Write(c64dataLen);
            writer.Write(SID2Types.StringNotNull(path));
            writer.Write(SID2Types.StringNotNull(dataFileName));
            writer.Write(SID2Types.StringNotNull(infoFileName));
        }
        // serializing
        public void SaveToWriter(BinaryWriter writer)
        {
            info.SaveToWriter(writer);
            writer.Write(status);

            writer.Write(songSpeed.Length);
            for (int i = 0; i < songSpeed.Length; i++)
            {
                writer.Write(songSpeed[i]);
            }

            writer.Write(clockSpeed.Length);
            for (int i = 0; i < clockSpeed.Length; i++)
            {
                writer.Write(clockSpeed[i]);
            }

            writer.Write(songLength.Length);
            for (int i = 0; i < songLength.Length; i++)
            {
                writer.Write(songLength[i]);
            }

            writer.Write(infostring.Length);
            for (int i = 0; i < infostring.Length; i++)
            {
                writer.Write(SID2Types.StringNotNull(infostring[i]));
            }

            writer.Write(fileOffset);
            writer.Write(musDataLen);
        }