boost::array<char>
string
boost::array<char, 1024> buffer; std::string data(buffer.begin(), buffer.end());
char *
string buffer; char * c_buffer = (char *)buffer.c_str();