If I had a buffer like:
uint8_t buffer[32];
and it was filled up completely with values, how could I get it into a stringstream, in hexadec
Look at the stream modifiers: std::setw and std::setfill. It will help you.
std::setw
std::setfill