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

MkBufferListC - various functions to access a MkBufferListS by indexMore...

+ Collaboration diagram for MkBufferListC_Index_C_API:

Functions

enum MkErrorE MkBufferListIndexDelete_RT (MK_RT mkrt, MK_BFL const bfl, const MK_NUM index, const MK_NUM numitems, const bool doDelete)
 delete the index'th list item from the MkBufferListS object …
 
enum MkErrorE MkBufferListIndexExtract_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF *const val_out)
 extract (read & delete) the index object from bfl
 
enum MkErrorE MkBufferListIndexGet_RT (MK_RT mkrt, MK_BFLN const bfl, MK_NUM const index, MK_BUF *const val_out)
 get (read only) the index object from bfl
 
enum MkErrorE MkBufferListIndexSet_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF const buf)
 set the index object from bfl
 
MK_BUF MkBufferListIndexGetBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM index)
 get the index element from MkBufferListC ... if not available… create it. …
 
void MkBufferListIndexSetBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF const buf)
 set the index element from MkBufferListC ... if not available… createspace …
 
MK_STRN MkBufferListIndexGetSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index)
 get the index element from MkBufferListC ... as string. …
 
void MkBufferListIndexSetSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_STRN const str)
 set the index element from MkBufferListC ... to string… if not available… create space …
 

MkBufferListC - MkBufferListC_Index_C_API - overload

#define MkBufferListIndexGetBUF_NULL(...)
 
#define MkBufferListIndexGetBUF(...)
 
#define MkBufferListIndexExtract_NULL(...)
 
#define MkBufferListIndexExtract(...)
 
#define MkBufferListIndexExtract_2(bfl, val_out)
 
#define MkBufferListIndexExtract_E(...)
 
#define MkBufferListIndexExtract_C(...)
 
#define MkBufferListIndexExtract_e(...)
 
#define MkBufferListIndexGet_NULL(...)
 
#define MkBufferListIndexGet(...)
 
#define MkBufferListIndexGet_E(...)
 
#define MkBufferListIndexGet_C(...)
 
#define MkBufferListIndexGet_e(...)
 
#define MkBufferListIndexDelete_NULL(...)
 
#define MkBufferListIndexDelete(...)
 
#define MkBufferListIndexDelete_3(bfl, index, numitems)
 
#define MkBufferListIndexDelete_2(bfl, index)
 
#define MkBufferListIndexDelete_E(...)
 
#define MkBufferListIndexDelete_C(...)
 
#define MkBufferListIndexGetSTR_NULL(...)
 
#define MkBufferListIndexGetSTR(...)
 
#define MkBufferListIndexSet_NULL(...)
 
#define MkBufferListIndexSet(...)
 
#define MkBufferListIndexSet_E(...)
 
#define MkBufferListIndexSet_C(...)
 
#define MkBufferListIndexSetBUF_NULL(...)
 
#define MkBufferListIndexSetBUF(...)
 
#define MkBufferListIndexSetSTR_NULL(...)
 
#define MkBufferListIndexSetSTR(...)
 

Detailed Description

MkBufferListC - various functions to access a MkBufferListS by index

Macro Definition Documentation

◆ MkBufferListIndexDelete

#define MkBufferListIndexDelete ( ...)
Value:
enum MkErrorE MkBufferListIndexDelete_RT(MK_RT mkrt, MK_BFL const bfl, const MK_NUM index, const MK_NUM numitems, const bool doDelete)
delete the index'th list item from the MkBufferListS object …
#define MK_RT_CALL

Definition at line 519 of file kernel_overload_mk.h.

◆ MkBufferListIndexDelete_2

#define MkBufferListIndexDelete_2 ( bfl,
index )
Value:
MkBufferListIndexDelete(bfl,index,1,true)
#define MkBufferListIndexDelete(...)

Definition at line 521 of file kernel_overload_mk.h.

◆ MkBufferListIndexDelete_3

#define MkBufferListIndexDelete_3 ( bfl,
index,
numitems )
Value:
MkBufferListIndexDelete(bfl,index,numitems,true)

Definition at line 520 of file kernel_overload_mk.h.

◆ MkBufferListIndexDelete_C

#define MkBufferListIndexDelete_C ( ...)
Value:
#define MkErrorCheckI(err)

Definition at line 523 of file kernel_overload_mk.h.

◆ MkBufferListIndexDelete_E

#define MkBufferListIndexDelete_E ( ...)
Value:
#define MkErrorCheck(err)
check return-code and goto error on error …

Definition at line 522 of file kernel_overload_mk.h.

◆ MkBufferListIndexDelete_NULL

#define MkBufferListIndexDelete_NULL ( ...)
Value:

Definition at line 518 of file kernel_overload_mk.h.

◆ MkBufferListIndexExtract

#define MkBufferListIndexExtract ( ...)
Value:
enum MkErrorE MkBufferListIndexExtract_RT(MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF *const val_out)
extract (read & delete) the index object from bfl …

Definition at line 506 of file kernel_overload_mk.h.

◆ MkBufferListIndexExtract_2

#define MkBufferListIndexExtract_2 ( bfl,
val_out )
Value:
#define MkBufferListIndexExtract(...)

Definition at line 507 of file kernel_overload_mk.h.

◆ MkBufferListIndexExtract_C

#define MkBufferListIndexExtract_C ( ...)
Value:

Definition at line 509 of file kernel_overload_mk.h.

◆ MkBufferListIndexExtract_E

#define MkBufferListIndexExtract_E ( ...)
Value:

Definition at line 508 of file kernel_overload_mk.h.

◆ MkBufferListIndexExtract_e

#define MkBufferListIndexExtract_e ( ...)
Value:
#define MK_EMBEDDED(type, call,...)
macro to create "embedded" (*_e) Version of C-API call's
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

Definition at line 510 of file kernel_overload_mk.h.

◆ MkBufferListIndexExtract_NULL

#define MkBufferListIndexExtract_NULL ( ...)
Value:

Definition at line 505 of file kernel_overload_mk.h.

◆ MkBufferListIndexGet

#define MkBufferListIndexGet ( ...)
Value:
enum MkErrorE MkBufferListIndexGet_RT(MK_RT mkrt, MK_BFLN const bfl, MK_NUM const index, MK_BUF *const val_out)
get (read only) the index object from bfl …

Definition at line 512 of file kernel_overload_mk.h.

◆ MkBufferListIndexGet_C

#define MkBufferListIndexGet_C ( ...)
Value:
#define MkBufferListIndexGet(...)

Definition at line 514 of file kernel_overload_mk.h.

◆ MkBufferListIndexGet_E

#define MkBufferListIndexGet_E ( ...)
Value:

Definition at line 513 of file kernel_overload_mk.h.

◆ MkBufferListIndexGet_e

#define MkBufferListIndexGet_e ( ...)
Value:

Definition at line 515 of file kernel_overload_mk.h.

◆ MkBufferListIndexGet_NULL

#define MkBufferListIndexGet_NULL ( ...)
Value:

Definition at line 511 of file kernel_overload_mk.h.

◆ MkBufferListIndexGetBUF

#define MkBufferListIndexGetBUF ( ...)
Value:
MK_BUF MkBufferListIndexGetBUF_RT(MK_RT mkrt, MK_BFL const bfl, MK_NUM index)
get the index element from MkBufferListC ... if not available… create it. …

Definition at line 502 of file kernel_overload_mk.h.

◆ MkBufferListIndexGetBUF_NULL

#define MkBufferListIndexGetBUF_NULL ( ...)
Value:

Definition at line 501 of file kernel_overload_mk.h.

◆ MkBufferListIndexGetSTR

#define MkBufferListIndexGetSTR ( ...)
Value:
MK_STRN MkBufferListIndexGetSTR_RT(MK_RT mkrt, MK_BFL const bfl, MK_NUM const index)
get the index element from MkBufferListC ... as string. …

Definition at line 525 of file kernel_overload_mk.h.

◆ MkBufferListIndexGetSTR_NULL

#define MkBufferListIndexGetSTR_NULL ( ...)
Value:

Definition at line 524 of file kernel_overload_mk.h.

◆ MkBufferListIndexSet

#define MkBufferListIndexSet ( ...)
Value:
enum MkErrorE MkBufferListIndexSet_RT(MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF const buf)
set the index object from bfl …

Definition at line 527 of file kernel_overload_mk.h.

◆ MkBufferListIndexSet_C

#define MkBufferListIndexSet_C ( ...)
Value:
#define MkBufferListIndexSet(...)

Definition at line 529 of file kernel_overload_mk.h.

◆ MkBufferListIndexSet_E

#define MkBufferListIndexSet_E ( ...)
Value:

Definition at line 528 of file kernel_overload_mk.h.

◆ MkBufferListIndexSet_NULL

#define MkBufferListIndexSet_NULL ( ...)
Value:

Definition at line 526 of file kernel_overload_mk.h.

◆ MkBufferListIndexSetBUF

#define MkBufferListIndexSetBUF ( ...)
Value:
void MkBufferListIndexSetBUF_RT(MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF const buf)
set the index element from MkBufferListC ... if not available… createspace …

Definition at line 531 of file kernel_overload_mk.h.

◆ MkBufferListIndexSetBUF_NULL

#define MkBufferListIndexSetBUF_NULL ( ...)
Value:

Definition at line 530 of file kernel_overload_mk.h.

◆ MkBufferListIndexSetSTR

#define MkBufferListIndexSetSTR ( ...)
Value:
void MkBufferListIndexSetSTR_RT(MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_STRN const str)
set the index element from MkBufferListC ... to string… if not available… create space …

Definition at line 533 of file kernel_overload_mk.h.

◆ MkBufferListIndexSetSTR_NULL

#define MkBufferListIndexSetSTR_NULL ( ...)
Value:

Definition at line 532 of file kernel_overload_mk.h.

Function Documentation

◆ MkBufferListIndexDelete_RT()

enum MkErrorE MkBufferListIndexDelete_RT ( MK_RT mkrt,
MK_BFL const bfl,
const MK_NUM index,
const MK_NUM numitems,
const bool doDelete )
extern

delete the index'th list item from the MkBufferListS object …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on
[in]indexan integer index to access an object in an array by position, start=0, end=-1
numitemsdelete number of items
doDeleteif doDelete == true delete the MkBufferC object, associated with the index, too
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk

◆ MkBufferListIndexExtract_RT()

enum MkErrorE MkBufferListIndexExtract_RT ( MK_RT mkrt,
MK_BFL const bfl,
MK_NUM const index,
MK_BUF *const val_out )
extern

extract (read & delete) the index object from bfl

If the index is not available, this is an error

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on
[in]indexan integer index to access an object in an array by position, start=0, end=-1
[out]val_outthe MkBuffer64S object to return
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
1. val_out is owned by the caller and have to be freed.
2. val_out will allways be set to MK_NULL first.
See also
BufferListDelete

◆ MkBufferListIndexGet_RT()

enum MkErrorE MkBufferListIndexGet_RT ( MK_RT mkrt,
MK_BFLN const bfl,
MK_NUM const index,
MK_BUF *const val_out )
extern

get (read only) the index object from bfl

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on
[in]indexan integer index to access an object in an array by position, start=0, end=-1
[out]val_outthe MkBufferC to return
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
1. val_out is owned by the MkBufferListC and must NOT be freed.
2. val_out will allways be set to MK_NULL first.
3. it is an error if index is not available.
See also
BufferListIndexGetBUF

◆ MkBufferListIndexGetBUF_RT()

MK_BUF MkBufferListIndexGetBUF_RT ( MK_RT mkrt,
MK_BFL const bfl,
MK_NUM index )
extern

get the index element from MkBufferListC ... if not available… create it. …

The buffer returned is still owned by bfl.

index starting first next... mode
+0 < idx < (+)~ begin 0 1, 2, 3 ... access idx from begin
-1 < idx < (-)~ end -1 -2, -3, -4 ... append idx to the end
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on
[in]indexan integer index to access an object in an array by position, start=0, end=-1
Returns
the MkBufferC requested
See also
BufferListIndexGet

◆ MkBufferListIndexGetSTR_RT()

MK_STRN MkBufferListIndexGetSTR_RT ( MK_RT mkrt,
MK_BFL const bfl,
MK_NUM const index )
extern

get the index element from MkBufferListC ... as string. …

for details please refer to BufferListIndexGetBUF.

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on
[in]indexan integer index to access an object in an array by position, start=0, end=-1
Returns
the string requested or an EMPTY-STRING on error

◆ MkBufferListIndexSet_RT()

enum MkErrorE MkBufferListIndexSet_RT ( MK_RT mkrt,
MK_BFL const bfl,
MK_NUM const index,
MK_BUF const buf )
extern

set the index object from bfl

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on
[in]indexan integer index to access an object in an array by position, start=0, end=-1
[in]bufthe MkBufferS instance to work on
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
It is an error if index is not available.
See also
BufferListIndexSetBUF

◆ MkBufferListIndexSetBUF_RT()

void MkBufferListIndexSetBUF_RT ( MK_RT mkrt,
MK_BFL const bfl,
MK_NUM const index,
MK_BUF const buf )
extern

set the index element from MkBufferListC ... if not available… createspace …

  1. cursize will be >= index+1
  2. size will be >= index+1
  3. cursize <= X < index+1 -> the missing buffer will be created
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on
[in]indexan integer index to access an object in an array by position, start=0, end=-1
[in]bufthe MkBufferS instance to work on

◆ MkBufferListIndexSetSTR_RT()

void MkBufferListIndexSetSTR_RT ( MK_RT mkrt,
MK_BFL const bfl,
MK_NUM const index,
MK_STRN const str )
extern

set the index element from MkBufferListC ... to string… if not available… create space …

for details please refer to BufferListIndexGetBUF

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on
[in]indexan integer index to access an object in an array by position, start=0, end=-1
[in]strthe string to set