Tpm2Lib.Tbs.ReplaceHandlesIn C# (CSharp) Method

ReplaceHandlesIn() private method

Modifies the handles and sessions arrays so that they contain the translated handles.
private ReplaceHandlesIn ( TpmHandle handles, SessionIn sessions, ObjectContext theObjects, ObjectContext theSessions ) : void
handles TpmHandle
sessions SessionIn
theObjects ObjectContext
theSessions ObjectContext
return void
        private void ReplaceHandlesIn(TpmHandle[] handles, SessionIn[] sessions, ObjectContext[] theObjects, ObjectContext[] theSessions)
        {
            for (int j = 0; j < handles.Length; j++)
            {
                handles[j] = theObjects[j].TheTpmHandle;
            }
            for (int j = 0; j < sessions.Length; j++)
            {
                sessions[j].handle = theSessions[j].TheTpmHandle;
            }
        }