DEPRECATED[M], createMemoryBlock(), text stream ...

This commit is contained in:
2022-05-11 20:55:51 +03:00
parent 0897a8369f
commit ef8ffcd02f
12 changed files with 84 additions and 39 deletions

View File

@@ -35,19 +35,19 @@ PICout operator << (PICout c, const TS & v) {c << '{' << v.i << ", " << v.f << '
template<typename P> inline PIBinaryStream<P> & operator <<(PIBinaryStream<P> & s, const TS & v) {s << v.i; return s;}
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.takeLine();
piCout << ts.takeCWord();*/
//PIIOByteArray ioba(&ba);
PIByteArray ba;
PIIOByteArray ioba(&ba);
//PIIOBinaryStream stream(&ioba);
/*ProcessStatsFixed_ ps;
ba << ps;
piCout << "s" << ba.data;*/
PISystemMonitor::ProcessStatsFixed ps;
ba << PIByteArray::RawData("123", 3);
piCout << "s" << ba;
//File f;
//f.file.open("_", PIIODevice::ReadWrite);
//f.file.clear();