I'd like to fill my vector<unsigned char> with a low level "C" function that has this kind of proto :
getData(unsigned char* buffer, unsigned int size);
I'd like to avoid allowing a temporary buffer then copying the data's into a new vector. I'd like the getData function to write the data into the vector as it does for an array.