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

@@ -276,6 +276,10 @@ public:
//! \~russian Читает из устройства не более "max_size" байт в "read_to"
int read(void * read_to, int max_size) {return readDevice(read_to, max_size);}
//! \~english Read from device to memory block "mb"
//! \~russian Читает из устройства в блок памяти "mb"
int read(PIMemoryBlock mb) {return readDevice(mb.data(), mb.size());}
//! \~english Read from device maximum "max_size" bytes and returns them as PIByteArray
//! \~russian Читает из устройства не более "max_size" байт и возвращает данные как PIByteArray
PIByteArray read(int max_size);
@@ -357,6 +361,10 @@ public:
EVENT_HANDLER(bool, close);
EVENT_HANDLER1(int, write, PIByteArray, data);
//! \~english Write memory block "mb" to device
//! \~russian Пишет в устройство блок памяти "mb"
int write(const PIMemoryBlock & mb) {return write(mb.data(), mb.size());}
EVENT_VHANDLER(void, flush) {;}
EVENT(opened)