File containing the implementation of the protobuf encoding utilities.
More...
#include <protobuf-c/protobuf-c.h>
File containing the implementation of the protobuf encoding utilities.
- Author
- Alexandru Mereacre
- Date
- 2022
- Copyright
- SPDX-FileCopyrightText: © 2022 NQMCyber Ltd and edgesec contributors SPDX-License-Identifier: LGPL-3.0-or-later
◆ protobuf_c_message_del_get_packed_size()
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.
- Parameters
-
message[in] | The message object to serialise. |
- Returns
- number of bytes
◆ protobuf_c_message_del_pack()
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.
- Parameters
-
message[in] | The message object to serialise. |
buffer[out] | Buffer to store the bytes of the serialised message The buffer siza can be obtained with protobuf_c_message_del_get_packed_size |
- Returns
- the output buffer size
◆ uint32_pack()
size_t uint32_pack |
( |
uint32_t |
value, |
|
|
uint8_t * |
out |
|
) |
| |
◆ uint32_size()
size_t uint32_size |
( |
uint32_t |
v | ) |
|