The CLASS used to store a list of MkBufferS items into a flat array… More...
#include <MkBufferListC_def_mk.h>
Data Fields | ||
union { | ||
struct MkObjectS obj | ||
} | super | |
MK_NUM | size | |
size of data | ||
MK_NUM | cursize | |
the currently used number of allocated MkBufferC objects (e.g. 0 <= cursize <= size) | ||
MK_NUM | allocsize | |
the maximum allocated number of elements cursize <= allocsize <= size | ||
MK_BUF * | data | |
pointer to the allocated memory (fixed position) | ||
MK_BUF | bls [MkBufferListS_bls_size] | |
ILS storage | ||
The CLASS used to store a list of MkBufferS items into a flat array…
C-Kernel-Details
The CLASS MkBufferListS is used to store a list of MkBufferS into an MkBufferListS::data array. To access an MkBufferS item use:
0 <= index < MkBufferListS::cursize
A new MkBufferListS is always preallocated with the predefined ILS-storage (MkBufferListS::bls), but can switch to a MALLOC-storage if the storage requirements of the user exceed the predefined ILS-storage-size (MkBufferListS_bls_size).
A MkBufferListS never run out of storage.
Definition at line 74 of file MkBufferListC_def_mk.h.
MK_NUM MkBufferListS::allocsize |
the maximum allocated number of elements cursize <= allocsize <= size
Definition at line 85 of file MkBufferListC_def_mk.h.
MK_BUF MkBufferListS::bls[MkBufferListS_bls_size] |
ILS storage
Definition at line 88 of file MkBufferListC_def_mk.h.
MK_NUM MkBufferListS::cursize |
the currently used number of allocated MkBufferC objects (e.g. 0 <= cursize <= size)
Definition at line 84 of file MkBufferListC_def_mk.h.
MK_BUF* MkBufferListS::data |
pointer to the allocated memory (fixed position)
Definition at line 86 of file MkBufferListC_def_mk.h.
struct MkObjectS MkBufferListS::obj |
Definition at line 78 of file MkBufferListC_def_mk.h.
MK_NUM MkBufferListS::size |
size of data
Definition at line 83 of file MkBufferListC_def_mk.h.
union { ... } MkBufferListS::super |