public void Save() { var fs = new FileStream(mFilename, FileMode.Create, FileAccess.Write, FileShare.None); ZlibUtil.CompressTAS(mMem, fs); fs.Close(); fs.Dispose(); }
public TASFile(string filename) { mFilename = filename; mMem = new LinkedList <FrameData>(); var fs = new FileStream(mFilename, FileMode.Open, FileAccess.Read, FileShare.Read); ZlibUtil.DecompressTAS(mMem, fs); fs.Close(); fs.Dispose(); mPointer = mMem.First; mPointerIndex = 0; }