So i am learning C++ right now and i am pretty stuck right now. I have been researching in the Internet Form some time now, but could Not find a solution to my Problem. Maybe because i did not know what to look after..
And sry for the maybe misleading title, but here is the question:
Lets say I have a struct called Data with an int Array and some other members
struct Data{
...
uint8_t values [];
}
Now i have a Method test
void test (uint8_t *buffer, size_t buffer_size)
{
...
}
In that method i make an instance of Data and i want to assign the value stored in the buffer to that Array of the instance of Data and i have no Idea how to so this. Not sure, but maybe i need a Pointer-Pointer?
Thanks in advance! Cheers