.tutorial

git-svn-id: svn://ultimatepp.org/upp/trunk@11530 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-12-08 08:34:54 +00:00
parent bc892d2bfd
commit b7e9ea073a
2 changed files with 9 additions and 11 deletions

View file

@ -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());
///
}