Tpm2Lib.Tpm2.PcrAllocate C# (CSharp) Method

PcrAllocate() private method

private PcrAllocate ( TpmHandle authHandle, PcrSelection pcrAllocation, [ maxPCR, [ sizeNeeded, [ sizeAvailable ) : byte
authHandle TpmHandle
pcrAllocation PcrSelection
maxPCR [
sizeNeeded [
sizeAvailable [
return byte
        public byte PcrAllocate(
            TpmHandle authHandle,
            PcrSelection[] pcrAllocation,
            [SuppressMessage("Microsoft.Design", "CA1021")]
            out uint maxPCR,
            [SuppressMessage("Microsoft.Design", "CA1021")]
            out uint sizeNeeded,
            [SuppressMessage("Microsoft.Design", "CA1021")]
            out uint sizeAvailable
        )
        {
            Tpm2PcrAllocateRequest inS = new Tpm2PcrAllocateRequest();
            inS.authHandle = authHandle;
            inS.pcrAllocation = pcrAllocation;
            TpmStructureBase outSBase;
            DispatchMethod(TpmCc.PcrAllocate, (TpmStructureBase) inS, typeof(Tpm2PcrAllocateResponse), out outSBase, 1, 0);
            Tpm2PcrAllocateResponse outS = (Tpm2PcrAllocateResponse) outSBase;
            maxPCR = outS.maxPCR;
            sizeNeeded = outS.sizeNeeded;
            sizeAvailable = outS.sizeAvailable;
            return outS.allocationSuccess;
        }
        /// <summary>
Tpm2