21#include "netsocket/nsapi_types.h"
110 if (current ==
nullptr) {
111 if (start !=
nullptr && start->len <= size && start->len >=
sizeof(*start)) {
118 if (current->len <
sizeof(*current)) {
122 if (get_next_aligned_addr() >= (
reinterpret_cast<uint8_t *
>(start) + size)) {
140 if (current ==
nullptr) {
143 current =
reinterpret_cast<nsapi_msghdr *
>(get_next_aligned_addr());
151 void *get_next_aligned_addr()
153 size_t remaining_size = size - (
reinterpret_cast<uintptr_t
>(current) -
reinterpret_cast<uintptr_t
>(start));
154 void *
next =
reinterpret_cast<void *
>(
reinterpret_cast<uint8_t *
>(current) + current->len);
unsigned int nsapi_size_t
Type used to represent the size of data passed through sockets.
Header structure for control info.