EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
protobuf_utils.h
Go to the documentation of this file.
1 
11 #ifndef PROTOBUF_UTILS_H
12 #define PROTOBUF_UTILS_H
13 
14 #include <protobuf-c/protobuf-c.h>
15 
23 size_t protobuf_c_message_del_get_packed_size(const ProtobufCMessage *message);
24 
34 size_t protobuf_c_message_del_pack(const ProtobufCMessage *message,
35  uint8_t *out);
36 
37 #endif
size_t protobuf_c_message_del_get_packed_size(const ProtobufCMessage *message)
Determine the number of bytes required to store the length delimited serialised message.
Definition: protobuf_utils.c:53
size_t protobuf_c_message_del_pack(const ProtobufCMessage *message, uint8_t *out)
Serialise a message from its in-memory representation adding the lenght delimiter.
Definition: protobuf_utils.c:60