Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » streaming [FEATURE REQUEST]
Re: streaming [FEATURE REQUEST] [message #19348 is a reply to message #19337] Fri, 28 November 2008 08:39 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
amando1957 wrote on Thu, 27 November 2008 12:38

The String's are claimed to be fit for binary data, but do not provide the operator%.



You can use StringStream.

The problem is that for String, it would to weird to support bidirectional operator%.

Using StringStream is almost as simple as using String proper.

(But you sent me thinking - maybe only the output is what we need there, right?).

Quote:


The FileOut have got a Put(), but do not provide the operator<<.



It does.

Quote:


Alternative FileOut could get a constructor which allows to select binary or text



And that would do what? Convert '\n' to "\r\n" on Windows?

BTW, such thing is extremely constly in terms of performance in certain scenarios.

Quote:


, and also Little or Big Endian, which IMHO depends of the file format written.



IMO it is more logical to use specific Putn[le|be]. LE/BE is usually not a variable for given file format.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Solved] Any::dtor fails after it is picked
Next Topic: [BUG] resolving program's file name for debug output
Goto Forum:
  


Current Time: Sat May 18 05:18:41 CEST 2024

Total time taken to generate the page: 0.01659 seconds