Memory containers module

Contents

Memory containers in various types: buffers, arrays, linked lists, ring buffers, ....

Classes

struct zpl_buffer_header
struct zpl_array_header

Typedefs

using zpl_buffer_header = struct zpl_buffer_header
using zpl_list = struct zpl__list
using zpl_array_header = struct zpl_array_header

Functions

auto zpl_list_init(zpl_list* list, void const* ptr) -> void
auto zpl_list_add(zpl_list* list, zpl_list* item) -> zpl_list*
auto zpl_list_remove(zpl_list* list) -> zpl_list*
ZPL_STATIC_ASSERT((2*(0)+8), 0)

Defines

#define zpl_buffer(Type)
#define zpl_buffer_make(Type, Name, allocator, cap)
#define ZPL_BUFFER_HEADER(x)
#define zpl_buffer_count(x)
#define zpl_buffer_capacity(x)
#define zpl_buffer_end(x)
#define zpl_buffer_init(x, allocator, cap)
#define zpl_buffer_free(x, allocator)
#define zpl_buffer_free2(x)
#define zpl_buffer_append(x, item)
#define zpl_buffer_appendv(x, items, item_count)
#define zpl_buffer_copy_init(y, x)
#define zpl_buffer_pop(x)
#define zpl_buffer_clear(x)
#define zpl_array(Type)
#define zpl_array_make(Type, Name, allocator)
#define ZPL_ARRAY_GROW_FORMULA(x)
#define ZPL_ARRAY_HEADER(x)
#define zpl_array_allocator(x)
#define zpl_array_count(x)
#define zpl_array_capacity(x)
#define zpl_array_end(x)
#define zpl_array_init_reserve(x, allocator_, cap)
#define zpl_array_init(x, allocator)
#define zpl_array_free(x)
#define zpl_array_set_capacity(x, capacity)
#define zpl_array_grow(x, min_capacity)
#define zpl_array_append(x, item)
#define zpl_array_append_at(x, item, ind)
#define zpl_array_appendv(x, items, item_count)
#define zpl_array_remove_at(x, index)
#define zpl_array_copy_init(y, x)
#define zpl_array_pop(x)
#define zpl_array_back(x)
#define zpl_array_front(x)
#define zpl_array_clear(x)
#define zpl_array_resize(x, new_count)
#define zpl_array_reserve(x, new_capacity)
#define ZPL_RING_DECLARE(type)
#define ZPL_RING_DEFINE(type)