![]() |
Lucciefr
Lua code caving, injection and exploration framework
|
MessagePack utilities. More...
#include "mpkutils.h"Functions | |
| int | msgpack_pack_lstring (msgpack_packer *pk, const char *str, size_t len) |
| Pack string with a given length. More... | |
| void | msgpack_object_from_lstring (msgpack_object *object, const char *str, size_t len) |
| Create msgpack object from string (with given length). More... | |
| size_t | msgpack_object_str_fwrite (msgpack_object_str str, FILE *stream) |
| Write msgpack_object_str to a stream. More... | |
MessagePack utilities.
| void msgpack_object_from_lstring | ( | msgpack_object * | object, |
| const char * | str, | ||
| size_t | len | ||
| ) |
Create msgpack object from string (with given length).
Also translates NULL to a "nil" object.
str pointer! | size_t msgpack_object_str_fwrite | ( | msgpack_object_str | str, |
| FILE * | stream | ||
| ) |
Write msgpack_object_str to a stream.
Since a string-type msgpack_object_str isn't NUL-terminated, it's a bit awkward to output; maybe this helps.
| int msgpack_pack_lstring | ( | msgpack_packer * | pk, |
| const char * | str, | ||
| size_t | len | ||
| ) |
Pack string with a given length.
msgpack-c has an awful syntax for string packing (requiring two calls for string length and actual content), work around that - by introducing a cleaner "string + length" interface.
1.8.10