c++ streaming into char array?
问题 im currently working on a c++ application which is using a c library which needs a callback implemented from my side for example the callback is defined as this: int onWrite(char *what, char *buffer, size_t size, off_t offset); i have std::set which needs to be formated and written into buffer and take care of size and offset where size is buffer's size and offset how many bytes have already been processed is there a c++ way where i can stream-like into buffer? i think about something like