I’m getting a
*mut u_char from a C function and a data size from another call. I want to transform this into a
Vec<u8> but I don’t know how to proceed.
Vec doc has from_raw_parts but it’s explicitly saying it’s not a good way to transform a C pointer to a
What is the best/safest way to do that?