Is there something like Python StringIO / CStringIO for C ++?

I serialize a large amount of data to send over the network using Boost serialization libraries.

Serial sort libraries require an intermediate file for serialization and deserialization. The amount of data transferred makes it inconvenient to do all this. Keeping things in mind would be much better.

Is there anything at all in C ++ like Python cStringIO / StringIO that I can use to fake Boost serialization?

Thanks in advance.

+4
source share
1 answer

Yes, it is called stringstream .

+2
source

Source: https://habr.com/ru/post/1396451/


All Articles