koliseo 0.5.4
Loading...
Searching...
No Matches
Koliseo Struct Reference

Represents the initialised arena allocator struct. More...

#include <koliseo.h>

Data Fields

char * data
 Points to data field.
ptrdiff_t size
 Size of data field.
ptrdiff_t offset
 Current position of memory pointer.
ptrdiff_t prev_offset
 Previous position of memory pointer.
int has_temp
 When == 1, a Koliseo_Temp is currently active on this Koliseo.
KLS_Conf conf
 Contains flags to change the Koliseo behaviour.
KLS_Stats stats
 Contains stats for Koliseo performance analysis.
struct Koliseo_Tempt_kls
 Points to related active Kolieo_Temp, when has_temp == 1.
KLS_Hooks hooks [KLS_MAX_EXTENSIONS]
 Contains handlers for extensions.
void * extension_data [KLS_MAX_EXTENSIONS]
 Points to data for extensions.
size_t hooks_len
 Length for hooks and extension_data.
kls_free_funcfree_func
 Points to the free function for the arena's backing memory.
struct Koliseonext
 Points to the next Koliseo when conf.kls_growable == 1.

Detailed Description

Represents the initialised arena allocator struct.

See also
kls_new()
kls_clear()
kls_free()
KLS_PUSH()
KLS_POP()

Field Documentation

◆ conf

KLS_Conf Koliseo::conf

Contains flags to change the Koliseo behaviour.

◆ data

char* Koliseo::data

Points to data field.

◆ extension_data

void* Koliseo::extension_data[KLS_MAX_EXTENSIONS]

Points to data for extensions.

◆ free_func

kls_free_func* Koliseo::free_func

Points to the free function for the arena's backing memory.

◆ has_temp

int Koliseo::has_temp

When == 1, a Koliseo_Temp is currently active on this Koliseo.

◆ hooks

KLS_Hooks Koliseo::hooks[KLS_MAX_EXTENSIONS]

Contains handlers for extensions.

◆ hooks_len

size_t Koliseo::hooks_len

Length for hooks and extension_data.

◆ next

struct Koliseo* Koliseo::next

Points to the next Koliseo when conf.kls_growable == 1.

◆ offset

ptrdiff_t Koliseo::offset

Current position of memory pointer.

◆ prev_offset

ptrdiff_t Koliseo::prev_offset

Previous position of memory pointer.

◆ size

ptrdiff_t Koliseo::size

Size of data field.

◆ stats

KLS_Stats Koliseo::stats

Contains stats for Koliseo performance analysis.

◆ t_kls

struct Koliseo_Temp* Koliseo::t_kls

Points to related active Kolieo_Temp, when has_temp == 1.


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