public async Task WritePaaStream(Stream stream) { using MemoryStream memStream = new MemoryStream(); foreach (var entry in animationsPar.Entries) { AnimationGroup animationGroup = animationGroups.Find(group => group.FileName == entry.FileName); memStream.SetLength(0); Serialiser.Serialise(new Binary(memStream, true), animationGroup); memStream.Seek(0, SeekOrigin.Begin); await entry.SetData(memStream); } await animationsPar.SaveTo(stream); }
public async Task WritePtaStream(Stream stream) { await ptaFile.SaveTo(stream); }