development version (master branch)
Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

StringsStreamOut

 

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.

 

 

Public Method List

 

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.

 

 

StringsStreamIn

 

class StringsStreamIn : public Stream

Input stream corresponding to StringsStreamOut - reads data from multiple chunks.

 

Public Method List

 

StringsStreamIn(const Vector<String>& part)

Creates input stream for part data chunks.

 

 

Do you want to contribute?