mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-01 22:03:40 -06:00
.tutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@11530 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bc892d2bfd
commit
b7e9ea073a
2 changed files with 9 additions and 11 deletions
|
|
@ -36,7 +36,7 @@ void SpecialStream()
|
|||
os << "This is a test " << 12345;
|
||||
os.Close();
|
||||
|
||||
/// `TeeStream` send output data to two separate streams:
|
||||
/// `TeeStream` sends output data to two separate streams:
|
||||
|
||||
StringStream ss1;
|
||||
StringStream ss2;
|
||||
|
|
@ -49,9 +49,9 @@ void SpecialStream()
|
|||
/// `MemReadStream` can be used to convert read-only memory block to stream data:
|
||||
|
||||
static const char s[] = "Some line\nAnother line";
|
||||
MemReadStream ms(s, sizeof(os));
|
||||
MemReadStream ms(s, sizeof(s) - 1);
|
||||
while(!ms.IsEof())
|
||||
DUMP(ms.GetLine());
|
||||
DUMPHEX(ms.GetLine());
|
||||
|
||||
///
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue