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

            ZlibUtil.CompressTAS(mMem, fs);
            fs.Close();
            fs.Dispose();
        }
Exemplo n.º 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;
        }