Design Pattern Examples
Overview of object-oriented design patterns
UIntArray Struct Reference

Represents an array of 32-bit unsigned integers. The data field points to a block of memory allocated on the heap and needs to be freed when the pointer is no longer needed. More...

#include <uintarray.h>

Collaboration diagram for UIntArray:
Collaboration graph

Public Attributes

uint32_t * data
 Pointer to array of 32-bit unsigned integers.
 
size_t length
 Number of 32-bit unsigned integers actually in the data array.
 
size_t allocatedLength
 Number of elements that the data array can hold.
 

Detailed Description

Represents an array of 32-bit unsigned integers. The data field points to a block of memory allocated on the heap and needs to be freed when the pointer is no longer needed.

Note: The contents of this structure can be copied to another instance but that means the ownership of the data field is also transferred to that other instance.

Definition at line 23 of file uintarray.h.

Member Data Documentation

◆ allocatedLength

size_t allocatedLength

Number of elements that the data array can hold.

Definition at line 27 of file uintarray.h.

Referenced by UIntArray_AddInt(), UIntArray_Copy(), UIntArray_Initialize(), and UIntArray_RemoveInt().

◆ data

◆ length

size_t length

Number of 32-bit unsigned integers actually in the data array.

Definition at line 26 of file uintarray.h.

Referenced by _Facade_ShowIdCodes(), HandlerChain_SendMessage(), HandlerChain_ToString(), UIntArray_AddInt(), UIntArray_Copy(), UIntArray_Find(), UIntArray_Initialize(), and UIntArray_RemoveInt().


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