theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - jv - cc
Loading...
Searching...
No Matches
MkBufferListS Struct Reference

The CLASS used to store a list of MkBufferS items into a flat array… More...

#include <MkBufferListC_def_mk.h>

+ Collaboration diagram for MkBufferListS:

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_BUFdata
 pointer to the allocated memory (fixed position)
 
MK_BUF bls [MkBufferListS_bls_size]
 ILS storage
 

Detailed Description

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.

See also
MkBufferC, MkBufferStreamC

Definition at line 74 of file MkBufferListC_def_mk.h.

Field Documentation

◆ allocsize

MK_NUM MkBufferListS::allocsize

the maximum allocated number of elements cursize <= allocsize <= size

Definition at line 85 of file MkBufferListC_def_mk.h.

◆ bls

MK_BUF MkBufferListS::bls[MkBufferListS_bls_size]

ILS storage

Definition at line 88 of file MkBufferListC_def_mk.h.

◆ cursize

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.

◆ data

MK_BUF* MkBufferListS::data

pointer to the allocated memory (fixed position)

Definition at line 86 of file MkBufferListC_def_mk.h.

◆ obj

struct MkObjectS MkBufferListS::obj

Definition at line 78 of file MkBufferListC_def_mk.h.

◆ size

MK_NUM MkBufferListS::size

size of data

Definition at line 83 of file MkBufferListC_def_mk.h.

◆ [union]

union { ... } MkBufferListS::super

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