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

define the storage-allocator function More...

#include <LibMkKernel_mk.h>

+ Collaboration diagram for MkAllocDefS:

Data Fields

MK_PTR alloc_data
 data use for alloc_createF and alloc_deleteF
 
MkAllocCreateFLT alloc_createF
 "calloc" the memory of the object
 
MkAllocDeleteF alloc_deleteF
 "free" the memory of the object
 

Detailed Description

define the storage-allocator function

The alloc_data is used as storage for the allocator-data and is set at definition. The alloc_createF and alloc_deleteF function is a pointer, MK_NULL or 0x1

  • pointer -> use this pointer as external memory allocator
  • NULL -> use default MkSysCalloc MkSysFree
  • 0x1 -> use the MkTypeAllocpAllocCreatepAllocMemGet to use predefined storage with input from alloc_data attribute
Attention
, The alloc_createF HAVE TO set the MkObjectS::obj_protectisLocal to the value true (default: false) if the memory is static and must not be freed.

Definition at line 3592 of file LibMkKernel_mk.h.

Field Documentation

◆ alloc_createF

MkAllocCreateFLT MkAllocDefS::alloc_createF

"calloc" the memory of the object

Definition at line 3594 of file LibMkKernel_mk.h.

◆ alloc_data

MK_PTR MkAllocDefS::alloc_data

data use for alloc_createF and alloc_deleteF

Definition at line 3593 of file LibMkKernel_mk.h.

◆ alloc_deleteF

MkAllocDeleteF MkAllocDefS::alloc_deleteF

"free" the memory of the object

Definition at line 3595 of file LibMkKernel_mk.h.


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