MessagePack packing and unpacking class.
More...
#include <QC_MsgPack.dox.h>
MessagePack packing and unpacking class.
MessagePack module packing and unpacking class.
◆ constructor()
Creates the MsgPack object.
- Parameters
-
- Exceptions
-
| INVALID-MODE | passed operation mode is invalid |
◆ getOperationMode()
| int msgpack::MsgPack::getOperationMode |
( |
| ) |
|
Get module operation mode.
- Returns
- MsgPack module operation mode
◆ pack()
| *binary msgpack::MsgPack::pack |
( |
auto |
value | ) |
|
Pack the passed data.
- Parameters
-
- Returns
- packed value in MessagePack format
- Exceptions
-
| ENCODING-ERROR | encoding error occured during packing |
| PACK-ERROR | packing failed |
- Example:
hash example = {"compact": True, "schema": 0};
*binary packed = mp.pack(example);
MessagePack packing and unpacking class.
Definition: QC_MsgPack.dox.h:6
◆ setOperationMode()
| nothing msgpack::MsgPack::setOperationMode |
( |
int |
mode | ) |
|
Set operation mode.
- Parameters
-
- Exceptions
-
| INVALID-MODE | passed operation mode is invalid |
- Example:
const MSGPACK_QORE_MODE
Pack data in Qore mode and expect data to be unpacked to be in Qore mode.
Definition: ql_msgpack.dox.h:78
◆ unpack()
| auto msgpack::MsgPack::unpack |
( |
binary |
value | ) |
|
Unpack the passed data.
- Parameters
-
- Returns
- unpacked Qore value
- Exceptions
-
| ENCODING-ERROR | encoding error occured during unpacking |
| INVALID-MODE | passed operation mode is invalid |
| UNPACK-ERROR | unpacking failed |
- Example:
hash example = {"compact": True, "schema": 0};
*binary packed = mp.pack(example);
# ---
auto unpacked = mp.unpack(packed);
The documentation for this class was generated from the following file: