DBreeze.Storage.FSR.RestoreInitRollback C# (CSharp) Method

RestoreInitRollback() public method

public RestoreInitRollback ( ) : void
return void
        void RestoreInitRollback()
        {
            //100KB chunk
            byte[] rba = new byte[100 * 1024];
            int readOut = 0;
            long fsPosition = 0;

            do
            {
                this._fsRollback.Position = fsPosition;
                readOut = this._fsRollback.Read(rba, 0, rba.Length);

                /*************************************************************  Support dynamic size ************************/
                if ((fsPosition + readOut) > eofRollback)
                {
                    readOut = (int)(eofRollback - fsPosition);
                }
                /************************************************/

                fsPosition += readOut;

                if (readOut == 0)
                    break;
                if (readOut < rba.Length)
                    ParseRollBackFile(rba.Substring(0, readOut));
                else
                    ParseRollBackFile(rba);

            } while (true);

            NET_Flush(this._fsData);
        }