GATE
gate_array_class Struct Reference

A linear constant field of items of the same types. More...

#include <arrays.h>

Public Attributes

void const * data_ptr
 
gate_size_t item_size
 
gate_size_t item_count
 
gate_arraylist_t array_list
 

Detailed Description

A linear constant field of items of the same types.

The object points to the first item of a linear list of items. A static array is a pointer to an external (non-owned) field of items, while a default array contains an arraylist that owns all contained items The length and the items of an array is constant, they cannot be changed during runtime.

Member Data Documentation

◆ array_list

gate_arraylist_t gate_array_class::array_list

optional pointer to arraylist holding the data allocation

◆ data_ptr

void const* gate_array_class::data_ptr

pointer to first item

◆ item_count

gate_size_t gate_array_class::item_count

amount of valid items in array

◆ item_size

gate_size_t gate_array_class::item_size

size of one item in bytes


The documentation for this struct was generated from the following file: