class StringsStreamOut : public Stream
Output stream that stores data into Vector<String> output chunks. This is useful when handling very large serializations - it allows output to be > 2GB (which is String hard size limit because of optimisation concerns) but also splits allocation into smaller chunks which is potentially faster for repeated operation.
StringsStreamOut(int part_size = 1024*1024 - 256)
Constructor - part_size is the size of data chunk.
Vector<String> PickResult()
Returns the output data. Can be called just once for any instance.
class StringsStreamIn : public Stream
Input stream corresponding to StringsStreamOut - reads data from multiple chunks.
StringsStreamIn(const Vector<String>& part)
Creates input stream for part data chunks.
|