Original Post
How can you do a memcpy type functionality with a STL vector?
Take for example you have 100 bytes (with embedded nulls) that you want to memcpy from a vector into a struct... Or memcpy the struct into the vector.
Take for example:
vector<char> message;
memcpy(&message[0], "1234\06789", 10);
I want to put those 10 bytes into the vector. Then later on I want to copy whats in that vector and copy into a char[100] buffer.
I know string is setup prefectly for what i want to do, but that doesn''t seem to handle embedded nulls...