I’m getting data from a binary file, reading from file and writing in a vector of unsigned char. I can’t edit it, because I’m using a external library.
But the data that I’m reading from file is a 16 bits image, and I’d like to put the data in a vector of unsigned short
Maybe I can do a cast for it?
Rgds.
A generic approach (not bullet proof):