Beispiel #1
0
        public override void Load(Stream input)
        {
            Activity.Reset();
            bool status = Decoder.IsFIT(input);

            status &= Decoder.CheckIntegrity(input);
            // Process the file
            if (status)
            {
                Log.Write("Decoding...");
                Decoder.Read(input);
                Log.Write("Decoded FIT file");
            }
            else
            {
                Log.Write("Integrity check failed.");
                Log.Write("Attempting to decode...");
                Decoder.Read(input);
            }
        }