version 2.91.0, PITextStream works

This commit is contained in:
2022-05-13 11:26:01 +03:00
parent ef8ffcd02f
commit 1028233553
10 changed files with 285 additions and 333 deletions

View File

@@ -36,18 +36,26 @@ template<typename P> inline PIBinaryStream<P> & operator <<(PIBinaryStream<P> &
template<typename P> inline PIBinaryStream<P> & operator >>(PIBinaryStream<P> & s, TS & v) {s >> v.i; return s;}
int main(int argc, char * argv[]) {
/*PIFile f;
PIFile f;
f.open("_test.h", PIIODevice::ReadOnly);
PIIOTextStream ts(&f);
while (!f.isEnd())
piCout << ts.takeCWord();*/
ts.setEncoding(PIIOTextStream::System);
while (!ts.isEnd()) {
PIString v;
ts >> v;
piCout << v;
//piCout << ts.takeCWord();
}
PIByteArray ba;
/*PIByteArray ba;
PIIOByteArray ioba(&ba);
//PIIOBinaryStream stream(&ioba);
PISystemMonitor::ProcessStatsFixed ps;
ba << PIByteArray::RawData("123", 3);
piCout << "s" << ba;
piCout << "s" << ba;*/
//File f;
//f.file.open("_", PIIODevice::ReadWrite);
//f.file.clear();