on-internet
← Community

c++ streaming into char array?

Stack Overflow ·

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 this: SomeSTLStandardStream stream(buffer,size); stream.ignore(offset); // to drop the first n offset byt

Comments

Sign in or sign up to comment and upvote.

No comments yet.