Tpm2Lib.Tbs.LoadObject C# (CSharp) 메소드

LoadObject() 개인적인 메소드

Load an object making a space if needed. If we need to make a space then we are mindful not to evict anything in the doNotEvict array.
private LoadObject ( ObjectContext contextToLoad, ObjectContext doNotEvict ) : bool
contextToLoad ObjectContext
doNotEvict ObjectContext
리턴 bool
        private bool LoadObject(ObjectContext contextToLoad, ObjectContext[] doNotEvict)
        {
            do
            {
                contextToLoad.TheTpmHandle = Tpm._AllowErrors().ContextLoad(contextToLoad.Context);
                if (Tpm._LastCommandSucceeded())
                {
                    break;
                }
                bool spaceMade = MakeSpace(contextToLoad.TheSlotType, doNotEvict);
                if (!spaceMade)
                {
                    return false;
                }
            } while (true);
            contextToLoad.Loaded = true;
            return true;
        }