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

ParseRollBackFile() private method

private ParseRollBackFile ( byte rbd ) : void
rbd byte
return void
        private void ParseRollBackFile(byte[] rbd)
        {
            byte[] left = null;

            if (!ProtocolStarted)
            {
                ProtocolNumber = rbd[0];

                switch (ProtocolNumber)
                {
                    case 1:
                        ProtocolNumber = 1;
                        ProtocolStarted = true;

                        left = DoProtocol1(rbd);
                        if (left != null)
                        {
                            ParseRollBackFile(left);
                        }
                        break;
                    default:
                        throw new Exception("ROLLBACK.ParseRollBackFile: unknown protocol, p1");
                }
            }
            else
            {
                switch (ProtocolNumber)
                {
                    case 1:
                        left = DoProtocol1(rbd);
                        if (left != null)
                        {
                            ParseRollBackFile(left);
                        }
                        break;
                    default:
                        throw new Exception("ROLLBACK.ParseRollBackFile: unknown protocol, p2");
                }
            }
        }