static UINT16 MarshalBytes()

in TPMCmd/tpm/src/support/TableDrivenMarshal.c [131:146]


static UINT16 MarshalBytes(
    UINT8               *source,
    UINT8               **buffer,
    INT32               *size,
    int32_t              count
)
{
    if(buffer != NULL)
    {
        if(size != NULL && (size -= count) < 0)
            return 0;
        memcpy(*buffer, source, count);
        *buffer += count;
    }
    return (UINT16)count;
}