I’m having trouble understanding type conversion. i have a vector of uint8_t values. I’d like to build an ofxOscArgBlob in order to send these values to Open Lighting Architecture .
I am struggling to get this data into an ofBuffer or const char * which can then be placed into ofxOscArgBlob per the documentation page:
void ofxOscArgBlob::set(const char *_value, unsigned int length)
a vector of uint8_t is pretty much the same as char* (except it’s unsigned but i can imagine it won’t make any difference) you just need to access the memory pointer of the data in the vector and cast it to char* like: