DEPRECATED[M], createMemoryBlock(), text stream ...
This commit is contained in:
14
main.cpp
14
main.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user