PIIODevice::bytesAvailible()
fix pistringlist pibinarystream write pibinarystream::binaryStreamSize() PIByteArray pibinarystream read with more size fix pistring pibinarystream read optimization fix bug in PIIOBinaryStream read and write if failed workaround in PIIOString::readDevice PISPI readDevice bug Fixed
This commit is contained in:
@@ -83,12 +83,17 @@ public:
|
||||
//! \~english Insert data "ba" into content at current position
|
||||
//! \~russian Вставляет данные "ba" в содержимое буфера в текущую позицию
|
||||
int writeByteArray(const PIByteArray & ba);
|
||||
|
||||
ssize_t bytesAvailible() const override {
|
||||
if (data_) return data_->size();
|
||||
else return 0;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool openDevice() override;
|
||||
virtual int readDevice(void * read_to, int size) override;
|
||||
virtual int writeDevice(const void * data_, int size) override;
|
||||
virtual DeviceInfoFlags deviceInfoFlags() const override {return PIIODevice::Sequential | PIIODevice::Reliable;}
|
||||
bool openDevice() override;
|
||||
int readDevice(void * read_to, int size) override;
|
||||
int writeDevice(const void * data_, int size) override;
|
||||
DeviceInfoFlags deviceInfoFlags() const override {return PIIODevice::Sequential | PIIODevice::Reliable;}
|
||||
|
||||
ssize_t pos;
|
||||
PIByteArray * data_;
|
||||
|
||||
Reference in New Issue
Block a user