Using strstream for ‘incore’ binary I/O

Using strstream for ‘incore’ binary I/O

Can I use strstream functions for incode I/O,i.e. writing to memory just as if it were binaryinput/output to a file?

You can use it to do incode input and output but there is no way to make it behave like a binary store, i.e.:

strstream s;s The only way to do what you want is to write your own classthat mimics strstream and writes data as binary.


Share the Post: