public void Write(string name, byte[] data) { BackupPacket packet = new BackupPacket(name, data); foreach (BackupManager mngr in this) { mngr.Add(packet); } }
public void Write(string name, string data) { BackupPacket packet = new BackupPacket(name, GetBytes(data)); foreach (BackupManager mngr in this) { mngr.Add(packet); } }
public void Write(string name, byte[] data, bool autosave) { BackupPacket packet = new BackupPacket(name, data); foreach (BackupManager mngr in this) { mngr.Add(packet); } if (autosave) { this.Save(); } }