theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_ToList_lng.h File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for MkBufferListC_ToList_lng.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

OT_ProcRet MK MkBufferListC_ToList (MkBufferListC_ARGS)
 

Detailed Description

tag: nhi1-release-250425

Definition in file MkBufferListC_ToList_lng.h.

Function Documentation

◆ MkBufferListC_ToList()

OT_ProcRet MK MkBufferListC_ToList ( MkBufferListC_ARGS )

Definition at line 14 of file MkBufferListC_ToList_lng.h.

14 {
19 MK_BUF buf = NULL;
21 for (MK_NUM i=0; i<hdl->cursize; i++) {
22 buf=hdl->data[i];
23 switch (buf->var.type) {
24 case MK_I8T: { RET = OT_TMP_I8_OBJ(MkBuf2I8(buf)); break; }
25 case MK_BOLT: { RET = OT_TMP_BOL_OBJ(MkBuf2BOL(buf)); break; }
26 case MK_I16T: { RET = OT_TMP_I16_OBJ(MkBuf2I16(buf)); break; }
27 case MK_I32T: { RET = OT_TMP_I32_OBJ(MkBuf2I32(buf)); break; }
28 case MK_FLTT: { RET = OT_TMP_FLT_OBJ(MkBuf2FLT(buf)); break; }
29 case MK_I64T: { RET = OT_TMP_I64_OBJ(MkBuf2I64(buf)); break; }
30 case MK_DBLT: { RET = OT_TMP_DBL_OBJ(MkBuf2DBL(buf)); break; }
31 case MK_BINT: { RET = OT_TMP_BIN_OBJ(buf->storage.first.B,buf->var.cursize); break; }
32 case MK_STRT: { RET = OT_TMP_STR_OBJ(buf->storage.first.C); break; }
33 case MK_LSTT: {
35 MkErrorC_Check(hdl,MkBufferGetBFL (buf, (struct MkBufferListS **) &bfl));
36 OT_MK_CALL_0(bfl,MkBufferListC,ToList,RET);
38 break;
39 }
40 }
41 if (RET == OT_LNG_NULL) goto error;
43 }
44end:
46 error:
48 goto end;
49}
#define OT_SETUP_NOARG(d)
#define OT_TMP_DBL_OBJ(val)
#define OT_retObj_SET_Error
#define OT_retObj_SET_List
#define OT_TMP_I16_OBJ(val)
#define OT_TMP_I32_OBJ(val)
#define OT_TMP_I64_OBJ(val)
#define OT_retObj_RETURN
#define OT_TMP_BIN_OBJ(val, len)
#define OT_retObj_APPEND(var)
#define OT_TMP_STR_OBJ(val)
#define OT_TMP_I8_OBJ(val)
#define OT_LNG_NULL
#define OT_TMP_BOL_OBJ(val)
#define OT_MK_CALL_0(hdl, cls, meth, ret)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
Tcl_Obj * OT_OBJ_T
#define OT_TMP_FLT_OBJ(val)
#define OT_SETUP_hdl
#define ToList_doc
#define MkBuf2I64(buf)
#define MkBuf2BOL(buf)
#define MkBuf2DBL(buf)
#define MkBuf2I8(buf)
#define MkBuf2I16(buf)
#define MkBuf2FLT(buf)
#define MkBuf2I32(buf)
#define MkBufferGetBFL(...)
#define MkBufferListFree(...)
#define MkBufferListCreateLOCAL_T(name, num)
create a MkBufferListC instance on local-memory and return an pointer as instance …
@ MK_I8T
Y: 1 byte 'byte' type.
@ MK_I64T
W: 8 byte 'long long int' type.
@ MK_FLTT
F: 4 byte 'float' type.
@ MK_BINT
B: X byte 'byte-array' type.
@ MK_I16T
S: 2 byte 'short' type.
@ MK_BOLT
O: 1 byte 'boolean' type.
@ MK_DBLT
D: 8 byte 'double' type.
@ MK_I32T
I: 4 byte 'int' type.
@ MK_STRT
C: X byte 'string' type (e.g. with a \0 at the end)
@ MK_LSTT
L: X byte 'list' type.
int32_t MK_NUM
array size data-type ('num' items in array …
The CLASS used to store a list of MkBufferS items into a flat array…
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …
union MkBufferU first
POINTER to native data representation (ILS or malloc)
struct MkBufferS::@6 storage
struct MkBufferS::@5 var
variable part of the instance-data
MK_NUM cursize
currently used size (always: cursize < size)
enum MkTypeE type
type of the item stored into the data-segment
MK_STRN C
const C string like data (e.g. with a \0 at the end)
MK_BIN B
arbitrary byte-array data