GATE
Loading...
Searching...
No Matches
gate_array_class Struct Reference

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

#include <arrays.h>

Data Fields

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.

Field Documentation

◆ data_ptr

void const* data_ptr

pointer to first item

◆ item_size

gate_size_t item_size

size of one item in bytes

◆ item_count

gate_size_t item_count

amount of valid items in array

◆ array_list

gate_arraylist_t array_list

optional pointer to arraylist holding the data allocation


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