Exemple #1
0
        public void Save()
        {
            var fs = new FileStream(mFilename, FileMode.Create, FileAccess.Write, FileShare.None);

            ZlibUtil.CompressTAS(mMem, fs);
            fs.Close();
            fs.Dispose();
        }
Exemple #2
0
        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;
        }