#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | measured_string |
Character string with measured length. More... | |
Typedefs | |
typedef measured_string | measured_string_t |
Type definition of the character string with measured length. | |
Functions | |
measured_string_t * | measured_string_copy (measured_string_t *source) |
Copies the given measured string with separated header and data parts. | |
measured_string_t * | measured_string_create_bulk (const uint8_t *string, size_t length) |
Creates a new measured string bundled with a copy of the given string itself as one memory block. | |
int | measured_strings_receive (measured_string_t **strings, uint8_t **data, size_t count) |
Receives a measured strings array from a calling module. | |
int | measured_strings_reply (const measured_string_t *strings, size_t count) |
Replies the given measured strings array to a calling module. | |
int | measured_strings_return (int phone, measured_string_t **strings, uint8_t **data, size_t count) |
Receives a measured strings array from another module. | |
int | measured_strings_send (int phone, const measured_string_t *strings, size_t count) |
Sends the given measured strings array to another module. |
The structure has been designed for serialization of character strings between modules.
Definition in file measured_strings.h.