#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "kaa_error.h"
#include "kaa_platform_common.h"
Go to the source code of this file.
|
kaa_error_t | kaa_platform_message_writer_create (kaa_platform_message_writer_t **writer_p, uint8_t *buf, size_t len) |
|
void | kaa_platform_message_writer_destroy (kaa_platform_message_writer_t *writer) |
|
kaa_error_t | kaa_platform_message_write (kaa_platform_message_writer_t *writer, const void *data, size_t data_size) |
|
kaa_error_t | kaa_platform_message_write_alignment (kaa_platform_message_writer_t *writer) |
|
kaa_error_t | kaa_platform_message_write_aligned (kaa_platform_message_writer_t *writer, const void *data, size_t data_size) |
|
kaa_error_t | kaa_platform_message_header_write (kaa_platform_message_writer_t *writer, uint32_t protocol_id, uint16_t protocol_version) |
|
kaa_error_t | kaa_platform_message_write_extension_header (kaa_platform_message_writer_t *writer, uint16_t extension_type, uint16_t options, uint32_t payload_size) |
|
kaa_error_t | kaa_platform_message_reader_create (kaa_platform_message_reader_t **reader_p, const uint8_t *buffer, size_t len) |
|
void | kaa_platform_message_reader_destroy (kaa_platform_message_reader_t *reader) |
|
kaa_error_t | kaa_platform_message_read (kaa_platform_message_reader_t *reader, void *buffer, size_t expected_size) |
|
kaa_error_t | kaa_platform_message_read_aligned (kaa_platform_message_reader_t *reader, void *buffer, size_t expected_size) |
|
kaa_error_t | kaa_platform_message_header_read (kaa_platform_message_reader_t *reader, uint32_t *protocol_id, uint16_t *protocol_version, uint16_t *extension_count) |
|
kaa_error_t | kaa_platform_message_read_extension_header (kaa_platform_message_reader_t *reader, uint16_t *extension_type, uint16_t *extension_options, uint32_t *extension_payload_length) |
|
bool | kaa_platform_message_is_buffer_large_enough (kaa_platform_message_reader_t *reader, size_t size) |
|
kaa_error_t | kaa_platform_message_skip (kaa_platform_message_reader_t *reader, size_t size) |
|
static size_t | kaa_aligned_size_get (size_t size) |
|
#define KAA_STATIC_ASSERT |
( |
|
name, |
|
|
|
expr |
|
) |
| static char static_assertion_##name[expr] __attribute__((unused)) |
static size_t kaa_aligned_size_get |
( |
size_t |
size | ) |
|
|
inlinestatic |