API to serialize and deserialize GNS records. More...
#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_constants.h"
#include "gnunet_signatures.h"
#include "gnunet_arm_service.h"
#include "gnunet_gnsrecord_lib.h"
Go to the source code of this file.
Data Structures | |
struct | NetworkRecord |
Internal format of a record in the serialized form. More... | |
Macros | |
#define | LOG(kind, ...) GNUNET_log_from (kind, "gnsrecord", __VA_ARGS__) |
#define | DEBUG_GNSRECORDS 0 |
Set to 1 to check that all records are well-formed (can be converted to string) during serialization/deserialization. More... | |
Functions | |
GNUNET_NETWORK_STRUCT_END ssize_t | GNUNET_GNSRECORD_records_get_size (unsigned int rd_count, const struct GNUNET_GNSRECORD_Data *rd) |
Calculate how many bytes we will need to serialize the given records. More... | |
ssize_t | GNUNET_GNSRECORD_records_serialize (unsigned int rd_count, const struct GNUNET_GNSRECORD_Data *rd, size_t dest_size, char *dest) |
Serialize the given records to the given destination buffer. More... | |
unsigned int | GNUNET_GNSRECORD_records_deserialize_get_size (size_t len, const char *src) |
int | GNUNET_GNSRECORD_records_deserialize (size_t len, const char *src, unsigned int rd_count, struct GNUNET_GNSRECORD_Data *dest) |
Deserialize the given records to the given destination. More... | |
API to serialize and deserialize GNS records.
Definition in file gnsrecord_serialization.c.
#define LOG | ( | kind, | |
... | |||
) | GNUNET_log_from (kind, "gnsrecord", __VA_ARGS__) |
Definition at line 35 of file gnsrecord_serialization.c.
#define DEBUG_GNSRECORDS 0 |
Set to 1 to check that all records are well-formed (can be converted to string) during serialization/deserialization.
Definition at line 41 of file gnsrecord_serialization.c.