Tpm2Lib.Tbs.GetReferencedObjects C# (CSharp) Méthode

GetReferencedObjects() private méthode

Look up TBS ObjectContext records given the handles in the inHandles input parms.
private GetReferencedObjects ( TbsContext caller, TpmHandle inHandles ) : Tpm2Lib.ObjectContext[]
caller TbsContext
inHandles TpmHandle
Résultat Tpm2Lib.ObjectContext[]
        private ObjectContext[] GetReferencedObjects(TbsContext caller, TpmHandle[] inHandles)
        {
            var neededContexts = new ObjectContext[inHandles.Length];
            for (int j = 0; j < inHandles.Length; j++)
            {
                neededContexts[j] = ContextManager.GetContext(caller, inHandles[j]);
                if (neededContexts[j] == null)
                {
                    return null;
                }
            }
            return neededContexts;
        }