diff options
Diffstat (limited to 'daemon/packer.cpp')
| -rw-r--r-- | daemon/packer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/daemon/packer.cpp b/daemon/packer.cpp index 0cc71f6..00d5383 100644 --- a/daemon/packer.cpp +++ b/daemon/packer.cpp @@ -14,6 +14,12 @@ void Packer::writeBytes(int n, const QByteArray &b) } } +void Packer::writeCString(const QString &s) +{ + _buf->append(s.toUtf8()); + _buf->append('\0'); +} + void Packer::writeUuid(const QUuid &uuid) { writeBytes(16, uuid.toRfc4122()); |
