|
KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
|
|
Interface for objects that can serialize to and deserialize from a QByteArray. More...
#include <iserializabletobytearray.h>
Public Member Functions | |
| virtual void | deserializeFromByteArray (const QByteArray &data)=0 |
| Populate this object by reading from a raw byte array. | |
| virtual QByteArray | serializeToByteArray () const =0 |
| Serialize this object into a raw byte array. | |
Interface for objects that can serialize to and deserialize from a QByteArray.
Interface for arbitrary binary serialization into a QByteArray.
Implement both serializeToByteArray() and deserializeFromByteArray() to support round-trip encoding in an application-defined binary format.
Definition at line 14 of file iserializabletobytearray.h.
|
pure virtual |
Populate this object by reading from a raw byte array.
| data | Previously produced by serializeToByteArray() |
|
pure virtual |
Serialize this object into a raw byte array.