Reduct  v4.0.5-1-g4851deb
A functional and immutable language.
Loading...
Searching...
No Matches
reduct_list_t Struct Reference

List structure. More...

#include <list.h>

Collaboration diagram for reduct_list_t:

Public Member Functions

 _Atomic (reduct_list_flags_t) flags
 List flags.
 

Data Fields

uint32_t length
 The length of the list (must be first, check the reduct_item_t structure).
 
uint32_t capacity
 The current capacity of the handle buffer.
 
uint32_t offset
 Offset of elements from the start of the buffer.
 
uint8_t _padding [3]
 
reduct_handle_thandles
 Pointer to the handle data.
 
union { 
 
   reduct_handle_t   smallHandles [REDUCT_LIST_SMALL_MAX
 Small list data. More...
 
   reduct_arena_t *   arena 
 The arena this list was allocated from. More...
 
};  
 

Detailed Description

List structure.

Definition at line 51 of file list.h.

Member Function Documentation

◆ _Atomic()

reduct_list_t::_Atomic ( reduct_list_flags_t  )

List flags.

Field Documentation

◆ length

uint32_t reduct_list_t::length

The length of the list (must be first, check the reduct_item_t structure).

Definition at line 53 of file list.h.

◆ capacity

uint32_t reduct_list_t::capacity

The current capacity of the handle buffer.

Definition at line 54 of file list.h.

◆ offset

uint32_t reduct_list_t::offset

Offset of elements from the start of the buffer.

Definition at line 55 of file list.h.

◆ _padding

uint8_t reduct_list_t::_padding[3]

Definition at line 57 of file list.h.

◆ handles

reduct_handle_t* reduct_list_t::handles

Pointer to the handle data.

Definition at line 58 of file list.h.

◆ smallHandles

reduct_handle_t reduct_list_t::smallHandles[REDUCT_LIST_SMALL_MAX]

Small list data.

Definition at line 60 of file list.h.

◆ arena

reduct_arena_t* reduct_list_t::arena

The arena this list was allocated from.

Definition at line 61 of file list.h.

◆ [union]

union { ... } reduct_list_t

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