void ToolSelect::serializeBody(QIODevice& data) const { data.putChar(_user); data.putChar(_tool); data.putChar(_mode); utils::write32(data, _c1); utils::write32(data, _c0); data.putChar(_s1); data.putChar(_s0); data.putChar(_h1); data.putChar(_h0); data.putChar(_space); }
bool QIODeviceProto::putChar(char c) { QIODevice *item = qscriptvalue_cast<QIODevice*>(thisObject()); if (item) return item->putChar(c); return false; }
bool BString::writeToDevice(QIODevice &device) { const QByteArray lengthStr(QByteArray::number(m_data.length())); if(lengthStr.size() != device.write(lengthStr.data(), lengthStr.size())) return false; if(!device.putChar(':')) return false; if(m_data.size() != device.write(m_data.constData(), m_data.size())) return false; return true; }
void LayerSelect::serializeBody(QIODevice& data) const { data.putChar(_user); data.putChar(_layer); }
int qiodevice_iostream_write_byte(void *context, const int byte) { QIODevice* io = (QIODevice*) context; return (io->putChar(byte) ? 0 : 1); }