Function dds_data_allocator_alloc

Function Documentation

void * dds_data_allocator_alloc (dds_data_allocator_t *data_allocator, size_t size) ddsrt_attribute_warn_unused_result ddsrt_attribute_malloc

Allocate memory using the given allocator.

Parameters
  • data_allocator[inout] initialized allocator object

  • size[in] minimum number of bytes to allocate with suitable alignment

Returns

a pointer to unaliased, uninitialized memory of at least the requested size, or NULL