PICloud small patches
This commit is contained in:
@@ -389,6 +389,12 @@ bool PIIODevice::close() {
|
||||
return !opened_;
|
||||
}
|
||||
|
||||
int PIIODevice::write(PIByteArray data) {
|
||||
if (isOpened())
|
||||
return writeDevice(data.data(), data.size_s());
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
bool PIIODevice::configure(const PIString & config_file, const PIString & section, bool parent_section) {
|
||||
PIConfig conf(config_file, PIIODevice::ReadOnly);
|
||||
|
||||
Reference in New Issue
Block a user