MkBufferListC - various functions to access a MkBufferListS by index …
More...
|
| 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 - various functions to access a MkBufferListS by index …
◆ 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 …
Definition at line 516 of file kernel_overload_mk.h.
◆ MkBufferListIndexDelete_2
| #define MkBufferListIndexDelete_2 |
( |
| bfl, |
|
|
| index ) |
◆ MkBufferListIndexDelete_3
| #define MkBufferListIndexDelete_3 |
( |
| bfl, |
|
|
| index, |
|
|
| numitems ) |
◆ MkBufferListIndexDelete_C
| #define MkBufferListIndexDelete_C |
( |
| ... | ) |
|
◆ MkBufferListIndexDelete_E
| #define MkBufferListIndexDelete_E |
( |
| ... | ) |
|
Value:
#define MkErrorCheck(err)
check return-code and goto error on error …
Definition at line 519 of file kernel_overload_mk.h.
◆ MkBufferListIndexDelete_NULL
| #define MkBufferListIndexDelete_NULL |
( |
| ... | ) |
|
◆ 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 503 of file kernel_overload_mk.h.
◆ MkBufferListIndexExtract_2
| #define MkBufferListIndexExtract_2 |
( |
| bfl, |
|
|
| val_out ) |
◆ MkBufferListIndexExtract_C
| #define MkBufferListIndexExtract_C |
( |
| ... | ) |
|
◆ MkBufferListIndexExtract_E
| #define MkBufferListIndexExtract_E |
( |
| ... | ) |
|
◆ MkBufferListIndexExtract_e
| #define MkBufferListIndexExtract_e |
( |
| ... | ) |
|
Value:
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …
Definition at line 507 of file kernel_overload_mk.h.
◆ MkBufferListIndexExtract_NULL
| #define MkBufferListIndexExtract_NULL |
( |
| ... | ) |
|
◆ 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 509 of file kernel_overload_mk.h.
◆ MkBufferListIndexGet_C
| #define MkBufferListIndexGet_C |
( |
| ... | ) |
|
◆ MkBufferListIndexGet_E
| #define MkBufferListIndexGet_E |
( |
| ... | ) |
|
◆ MkBufferListIndexGet_e
| #define MkBufferListIndexGet_e |
( |
| ... | ) |
|
◆ MkBufferListIndexGet_NULL
| #define MkBufferListIndexGet_NULL |
( |
| ... | ) |
|
◆ 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 499 of file kernel_overload_mk.h.
◆ MkBufferListIndexGetBUF_NULL
| #define MkBufferListIndexGetBUF_NULL |
( |
| ... | ) |
|
◆ 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 522 of file kernel_overload_mk.h.
◆ MkBufferListIndexGetSTR_NULL
| #define MkBufferListIndexGetSTR_NULL |
( |
| ... | ) |
|
◆ 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 524 of file kernel_overload_mk.h.
◆ MkBufferListIndexSet_C
| #define MkBufferListIndexSet_C |
( |
| ... | ) |
|
◆ MkBufferListIndexSet_E
| #define MkBufferListIndexSet_E |
( |
| ... | ) |
|
◆ MkBufferListIndexSet_NULL
| #define MkBufferListIndexSet_NULL |
( |
| ... | ) |
|
◆ 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 528 of file kernel_overload_mk.h.
◆ MkBufferListIndexSetBUF_NULL
| #define MkBufferListIndexSetBUF_NULL |
( |
| ... | ) |
|
◆ 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 530 of file kernel_overload_mk.h.
◆ MkBufferListIndexSetSTR_NULL
| #define MkBufferListIndexSetSTR_NULL |
( |
| ... | ) |
|
◆ MkBufferListIndexDelete_RT()
delete the index'th list item from the MkBufferListS object …
- Parameters
-
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | bfl | the MkBufferListS instance to work on |
| [in] | index | an integer index to access an object in an array by position, start=0, end=-1 |
| numitems | delete number of items |
| doDelete | if 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()
extract (read & delete) the index object from bfl …
If the index is not available, this is an error
- Parameters
-
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | bfl | the MkBufferListS instance to work on |
| [in] | index | an integer index to access an object in an array by position, start=0, end=-1 |
| [out] | val_out | the 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()
get (read only) the index object from bfl …
- Parameters
-
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | bfl | the MkBufferListS instance to work on |
| [in] | index | an integer index to access an object in an array by position, start=0, end=-1 |
| [out] | val_out | the 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()
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] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | bfl | the MkBufferListS instance to work on |
| [in] | index | an integer index to access an object in an array by position, start=0, end=-1 |
- Returns
- the MkBufferC requested
- See also
- BufferListIndexGet
◆ MkBufferListIndexGetSTR_RT()
get the index element from MkBufferListC ... as string. …
for details please refer to BufferListIndexGetBUF.
- Parameters
-
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | bfl | the MkBufferListS instance to work on |
| [in] | index | an 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()
◆ MkBufferListIndexSetBUF_RT()
set the index element from MkBufferListC ... if not available… createspace …
- cursize will be >= index+1
- size will be >= index+1
- cursize <= X < index+1 -> the missing buffer will be created
- Parameters
-
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | bfl | the MkBufferListS instance to work on |
| [in] | index | an integer index to access an object in an array by position, start=0, end=-1 |
| [in] | buf | the MkBufferS instance to work on |
◆ MkBufferListIndexSetSTR_RT()
set the index element from MkBufferListC ... to string… if not available… create space …
for details please refer to BufferListIndexGetBUF
- Parameters
-
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | bfl | the MkBufferListS instance to work on |
| [in] | index | an integer index to access an object in an array by position, start=0, end=-1 |
| [in] | str | the string to set |