I’m working with the lodepng library, and am getting a ‘c_vec’ returned from the encode_memory function.
I’m sure I’m doing something stupid but I’m starting to go in circles, how can I go from c_vec to the [u8], that I need to pass into the “put_s3” function? Surely there is something more efficient than copying one byte at a time? It seems like into_inner() or as_ref() or as_mut() functions in the c_vec library should do it and can copy it by copying a whole chunk of memory at a time?
Thanks in advance!
Here is the c_vec crate: