text stream ...

This commit is contained in:
2022-05-11 12:39:36 +03:00
parent 8c6b3613b6
commit fa19ad1093
4 changed files with 47 additions and 20 deletions

View File

@@ -37,19 +37,12 @@ template<typename P> inline PIBinaryStream<P> & operator >>(PIBinaryStream<P> &
int main(int argc, char * argv[]) {
PIByteArray ba;
PIFile f;
f.open("_", PIIODevice::ReadWrite);
f.clear();
PIIOBinaryStream ios(&f);
auto ts = createPITextStream(&ios);
f.open("_test.h", PIIODevice::ReadOnly);
PIIOTextStream ts(&f);
while (!f.isEnd())
piCout << ts.takeLine();
ts << "hello" << uchar('1');
ts.space();
(ts << PIString::fromUTF8("") << 123).space() << -0.1f;
ts.newLine();
piCout << PIString(ba);
//PIIOByteArray ioba(&ba);
//PIIOBinaryStream stream(&ioba);
/*ProcessStatsFixed_ ps;