Azinix

util_int_array_t Struct Reference

Struct to represent int-arrays. More...

#include <util.h>


Data Fields

int length
int * entries


Detailed Description

Struct to represent int-arrays.

Struct to represent int-arrays. We allocate a single block of sizeof(int) + sizeof(int*) + length * sizeof(int), so entries is not malloced seperately. This saves one call to malloc, its associated wastage, also gives us better locality of reference.

Definition at line 156 of file util.h.


Field Documentation

int util_int_array_t::length

Definition at line 158 of file util.h.

int* util_int_array_t::entries

Definition at line 159 of file util.h.