void MemoryConcat2B()

in src/Memory.c [95:108]


void MemoryConcat2B(
    TPM2B* aInOut,        // IN/OUT: destination 2B
    TPM2B* bIn,           // IN: second 2B
    unsigned int aMaxSize       // IN: The size of aInOut.buffer (max values for
                                    //     aInOut.size)
    )
{
    if (bIn->size <= aMaxSize - aInOut->size)
    {
        MemoryCopy(&aInOut->buffer[aInOut->size], &bIn->buffer, bIn->size);
        aInOut->size = aInOut->size + bIn->size;
    }
    return;
}