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

MkBufferC - various functions to get information out of buffer-dataMore...

+ Collaboration diagram for MkBufferC_Info_C_API:

Macros

#define MkBufferLogS_2V(buf, fmt)
 

Functions

MK_STRB MkBufferGetType1_RT (MK_RT mkrt, MK_BUFN const buf)
 return the type from a MkBufferC as single character value …
 
enum MkTypeE MkBufferGetType2_RT (MK_RT mkrt, MK_BUFN const buf)
 return the MkTypeE from a MkBufferC
 
MK_STRN MkBufferGetType3_RT (MK_RT mkrt, MK_BUFN const buf)
 return the type from a MkBufferC as single character string …
 
bool MkBufferIsLocal_RT (MK_RT mkrt, MK_BUFN const buf)
 Check if the MkBufferC is local (temporary), not local mean global
 
void MkBufferLog_RT (MK_RT mkrt, MK_BUFN const buf, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkBufferC
 
void MkBufferLogSS_RT (MK_RT mkrt, MK_BUFN const buf, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc)
 log the whole MkBufferC object to the MkLogFileC (default: stderr) …
 
void MkBufferLogS_RT (MK_RT mkrt, MK_BUFN const buf, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc)
 log the short MkBufferC object data to the MkLogFileC (default: stderr) …
 

MkBufferC - MkBufferC_Info_C_API - overload

#define MkBufferGetType1_NULL(...)
 
#define MkBufferGetType1(...)
 
#define MkBufferGetType2_NULL(...)
 
#define MkBufferGetType2(...)
 
#define MkBufferGetType3_NULL(...)
 
#define MkBufferGetType3(...)
 
#define MkBufferIsLocal_NULL(...)
 
#define MkBufferIsLocal(...)
 
#define MkBufferLog_NULL(...)
 
#define MkBufferLog(...)
 
#define MkBufferLog_4(buf, fmtobj, debug, callfunc)
 
#define MkBufferLog_3(buf, fmtobj, debug)
 
#define MkBufferLog_2(buf, fmtobj)
 
#define MkBufferLog_1(buf)
 
#define MkBufferLogS_NULL(...)
 
#define MkBufferLogS(...)
 
#define MkBufferLogS_3(buf, varname, fmtobj)
 
#define MkBufferLogS_2(buf, varname)
 
#define MkBufferLogS_1(buf)
 
#define MkBufferLogSS_NULL(...)
 
#define MkBufferLogSS(...)
 
#define MkBufferLogSS_3(buf, varname, fmtobj)
 
#define MkBufferLogSS_2(buf, varname)
 
#define MkBufferLogSS_1(buf)
 

Detailed Description

MkBufferC - various functions to get information out of buffer-data

Macro Definition Documentation

◆ MkBufferGetType1

#define MkBufferGetType1 ( ...)
Value:
MK_STRB MkBufferGetType1_RT(MK_RT mkrt, MK_BUFN const buf)
return the type from a MkBufferC as single character value …
#define MK_RT_CALL

Definition at line 173 of file kernel_overload_mk.h.

◆ MkBufferGetType1_NULL

#define MkBufferGetType1_NULL ( ...)
Value:
#define MK_RT_CALL_NULL

Definition at line 172 of file kernel_overload_mk.h.

◆ MkBufferGetType2

#define MkBufferGetType2 ( ...)
Value:
enum MkTypeE MkBufferGetType2_RT(MK_RT mkrt, MK_BUFN const buf)
return the MkTypeE from a MkBufferC …

Definition at line 175 of file kernel_overload_mk.h.

◆ MkBufferGetType2_NULL

#define MkBufferGetType2_NULL ( ...)
Value:

Definition at line 174 of file kernel_overload_mk.h.

◆ MkBufferGetType3

#define MkBufferGetType3 ( ...)
Value:
MK_STRN MkBufferGetType3_RT(MK_RT mkrt, MK_BUFN const buf)
return the type from a MkBufferC as single character string …

Definition at line 177 of file kernel_overload_mk.h.

◆ MkBufferGetType3_NULL

#define MkBufferGetType3_NULL ( ...)
Value:

Definition at line 176 of file kernel_overload_mk.h.

◆ MkBufferIsLocal

#define MkBufferIsLocal ( ...)
Value:
bool MkBufferIsLocal_RT(MK_RT mkrt, MK_BUFN const buf)
Check if the MkBufferC is local (temporary), not local mean global …

Definition at line 179 of file kernel_overload_mk.h.

◆ MkBufferIsLocal_NULL

#define MkBufferIsLocal_NULL ( ...)
Value:

Definition at line 178 of file kernel_overload_mk.h.

◆ MkBufferLog

#define MkBufferLog ( ...)
Value:
void MkBufferLog_RT(MK_RT mkrt, MK_BUFN const buf, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
log the MkBufferC …

Definition at line 181 of file kernel_overload_mk.h.

◆ MkBufferLog_1

#define MkBufferLog_1 ( buf)
Value:
MkBufferLog(buf,NULL,0,__func__,0)
#define MkBufferLog(...)

Definition at line 185 of file kernel_overload_mk.h.

◆ MkBufferLog_2

#define MkBufferLog_2 ( buf,
fmtobj )
Value:
MkBufferLog(buf,fmtobj,0,__func__,0)

Definition at line 184 of file kernel_overload_mk.h.

◆ MkBufferLog_3

#define MkBufferLog_3 ( buf,
fmtobj,
debug )
Value:
MkBufferLog(buf,fmtobj,debug,__func__,0)

Definition at line 183 of file kernel_overload_mk.h.

◆ MkBufferLog_4

#define MkBufferLog_4 ( buf,
fmtobj,
debug,
callfunc )
Value:
MkBufferLog(buf,fmtobj,debug,callfunc,0)

Definition at line 182 of file kernel_overload_mk.h.

◆ MkBufferLog_NULL

#define MkBufferLog_NULL ( ...)
Value:

Definition at line 180 of file kernel_overload_mk.h.

◆ MkBufferLogS

#define MkBufferLogS ( ...)
Value:
void MkBufferLogS_RT(MK_RT mkrt, MK_BUFN const buf, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc)
log the short MkBufferC object data to the MkLogFileC (default: stderr) …

Definition at line 187 of file kernel_overload_mk.h.

◆ MkBufferLogS_1

#define MkBufferLogS_1 ( buf)
Value:
MkBufferLogS(buf,"buf",NULL,__func__)
#define MkBufferLogS(...)

Definition at line 190 of file kernel_overload_mk.h.

◆ MkBufferLogS_2

#define MkBufferLogS_2 ( buf,
varname )
Value:
MkBufferLogS(buf,varname,NULL,__func__)

Definition at line 189 of file kernel_overload_mk.h.

◆ MkBufferLogS_2V

#define MkBufferLogS_2V ( buf,
fmt )
Value:
MkBufferLogS_3(buf,#fmt,MkOBJ(fmt))
#define MkBufferLogS_3(buf, varname, fmtobj)
#define MkOBJ(x)
cast a known-object into an MkObjectS pointer

Definition at line 7017 of file LibMkKernel_mk.h.

◆ MkBufferLogS_3

#define MkBufferLogS_3 ( buf,
varname,
fmtobj )
Value:
MkBufferLogS(buf,varname,fmtobj,__func__)

Definition at line 188 of file kernel_overload_mk.h.

◆ MkBufferLogS_NULL

#define MkBufferLogS_NULL ( ...)
Value:

Definition at line 186 of file kernel_overload_mk.h.

◆ MkBufferLogSS

#define MkBufferLogSS ( ...)
Value:
void MkBufferLogSS_RT(MK_RT mkrt, MK_BUFN const buf, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc)
log the whole MkBufferC object to the MkLogFileC (default: stderr) …

Definition at line 192 of file kernel_overload_mk.h.

◆ MkBufferLogSS_1

#define MkBufferLogSS_1 ( buf)
Value:
MkBufferLogSS(buf,"buf",NULL,__func__)
#define MkBufferLogSS(...)

Definition at line 195 of file kernel_overload_mk.h.

◆ MkBufferLogSS_2

#define MkBufferLogSS_2 ( buf,
varname )
Value:
MkBufferLogSS(buf,varname,NULL,__func__)

Definition at line 194 of file kernel_overload_mk.h.

◆ MkBufferLogSS_3

#define MkBufferLogSS_3 ( buf,
varname,
fmtobj )
Value:
MkBufferLogSS(buf,varname,fmtobj,__func__)

Definition at line 193 of file kernel_overload_mk.h.

◆ MkBufferLogSS_NULL

#define MkBufferLogSS_NULL ( ...)
Value:

Definition at line 191 of file kernel_overload_mk.h.

Function Documentation

◆ MkBufferGetType1_RT()

MK_STRB MkBufferGetType1_RT ( MK_RT mkrt,
MK_BUFN const buf )

return the type from a MkBufferC as single character value …

MK_BUFN const buf
)
{
switch (buf->var.type) {
case MK_STRT: return 'C';
case MK_I32T: return 'I';
case MK_DBLT: return 'D';
case MK_I64T: return 'W';
case MK_BINT: return 'B';
case MK_I8T: return 'Y';
case MK_BOLT: return 'O';
case MK_I16T: return 'S';
case MK_FLTT: return 'F';
case MK_LSTT: return 'L';
}
return '*';
}

◆ MkBufferGetType2_RT()

enum MkTypeE MkBufferGetType2_RT ( MK_RT mkrt,
MK_BUFN const buf )

return the MkTypeE from a MkBufferC

enum MkTypeE
MK_BUFN const buf
) {
return buf->var.type;
}

◆ MkBufferGetType3_RT()

MK_STRN MkBufferGetType3_RT ( MK_RT mkrt,
MK_BUFN const buf )

return the type from a MkBufferC as single character string …

MK_BUFN const buf
) {
switch (buf->var.type) {
case MK_STRT: return "C";
case MK_I32T: return "I";
case MK_DBLT: return "D";
case MK_I64T: return "W";
case MK_BINT: return "B";
case MK_I8T: return "Y";
case MK_BOLT: return "O";
case MK_I16T: return "S";
case MK_FLTT: return "F";
case MK_LSTT: return "L";
}
return "*";
}

◆ MkBufferIsLocal_RT()

bool MkBufferIsLocal_RT ( MK_RT mkrt,
MK_BUFN const buf )

Check if the MkBufferC is local (temporary), not local mean global

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bufthe MkBufferS instance to work on
Returns
a boolean value… yes or no

◆ MkBufferLog_RT()

void MkBufferLog_RT ( MK_RT mkrt,
MK_BUFN const buf,
MK_OBJN fmtobj,
MK_DBG const debug,
MK_STRN const callfunc,
MK_I32 const lvl )

log the MkBufferC

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bufthe MkBufferS instance to work on
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]lvla user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0)
See also
MkBufferC

◆ MkBufferLogS_RT()

void MkBufferLogS_RT ( MK_RT mkrt,
MK_BUFN const buf,
MK_STRN const varname,
MK_OBJN fmtobj,
MK_STRN const callfunc )

log the short MkBufferC object data to the MkLogFileC (default: stderr) …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bufthe MkBufferS instance to work on
[in]varnameThe name of the argument to report
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format)
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)

◆ MkBufferLogSS_RT()

void MkBufferLogSS_RT ( MK_RT mkrt,
MK_BUFN const buf,
MK_STRN const varname,
MK_OBJN fmtobj,
MK_STRN const callfunc )

log the whole MkBufferC object to the MkLogFileC (default: stderr) …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bufthe MkBufferS instance to work on
[in]varnameThe name of the argument to report
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format)
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)