I want to cast a chunk of binary data to an array, how do I do that? I come from a C++ background and haven't been doing this in a while. Its the array thats throwing me off. Casting as "uint8_t*" or "uint8_t[6]" give me wrong type and casting an array errors respectively.
Code:void foo(char *rawdata) { uint8_t data[6]; data = (???)rawdata; }