MkBufferC - various functions to access buffer-data … More...
Functions | |
MK_BUF | MkBufferAppendSTR_RT (MK_RT mkrt, MK_BUF const buf, MK_STRN const val) |
append a single string to a MkBufferC object … | |
MK_BUF | MkBufferAppendStringR_RT (MK_RT mkrt, MK_BUF const buf, MkStringR const val) |
append a single string to a MkBufferC object … | |
MK_I32 | MkBufferAppendVL_RT (MK_RT mkrt, MK_BUF const buf, MK_FST const printfmt, va_list var_list) |
append a single string with format and var_list arguments to a MkBuffer64S … | |
MK_I32 | MkBufferAppendV_RT (MK_RT mkrt, MK_BUF const buf, MK_FST const printfmt,...) |
append a single string with format and ... arguments to a MkBuffer64S … | |
MK_NUM | MkBufferPush_RT (MK_RT mkrt, MK_BUF const buf, MK_STRN const val) |
add str to the MkBufferC … | |
MK_NUM | MkBufferPop_RT (MK_RT mkrt, MK_BUF const buf, MK_STRN const val) |
delete str from the MkBufferC … | |
enum MkErrorE | MkBufferToObject_RT (MK_RT mkrt, MK_BUF const buf, MK_NAT_OBJECT *obj_out) |
return the native language object from a MkBufferC … | |
MkBufferC - MkBufferC_Access_C_API - overload | |
#define | MkBufferAppendSTR_NULL(...) |
#define | MkBufferAppendSTR(...) |
#define | MkBufferAppendStringR_NULL(...) |
#define | MkBufferAppendStringR(...) |
#define | MkBufferAppendV_NULL(...) |
#define | MkBufferAppendV(...) |
#define | MkBufferAppendVL_NULL(...) |
#define | MkBufferAppendVL(...) |
#define | MkBufferPop_NULL(...) |
#define | MkBufferPop(...) |
#define | MkBufferPush_NULL(...) |
#define | MkBufferPush(...) |
#define | MkBufferToObject_NULL(...) |
#define | MkBufferToObject(...) |
#define | MkBufferToObject_E(...) |
#define | MkBufferToObject_C(...) |
#define | MkBufferToObject_e(...) |
MkBufferC - various functions to access buffer-data …
#define MkBufferAppendSTR | ( | ... | ) |
Definition at line 24 of file kernel_overload_mk.h.
#define MkBufferAppendSTR_NULL | ( | ... | ) |
Definition at line 23 of file kernel_overload_mk.h.
#define MkBufferAppendStringR | ( | ... | ) |
Definition at line 26 of file kernel_overload_mk.h.
#define MkBufferAppendStringR_NULL | ( | ... | ) |
Definition at line 25 of file kernel_overload_mk.h.
#define MkBufferAppendV | ( | ... | ) |
Definition at line 30 of file kernel_overload_mk.h.
#define MkBufferAppendV_NULL | ( | ... | ) |
Definition at line 29 of file kernel_overload_mk.h.
#define MkBufferAppendVL | ( | ... | ) |
Definition at line 32 of file kernel_overload_mk.h.
#define MkBufferAppendVL_NULL | ( | ... | ) |
Definition at line 31 of file kernel_overload_mk.h.
#define MkBufferPop | ( | ... | ) |
Definition at line 34 of file kernel_overload_mk.h.
#define MkBufferPop_NULL | ( | ... | ) |
Definition at line 33 of file kernel_overload_mk.h.
#define MkBufferPush | ( | ... | ) |
Definition at line 36 of file kernel_overload_mk.h.
#define MkBufferPush_NULL | ( | ... | ) |
Definition at line 35 of file kernel_overload_mk.h.
#define MkBufferToObject | ( | ... | ) |
Definition at line 40 of file kernel_overload_mk.h.
#define MkBufferToObject_C | ( | ... | ) |
Definition at line 42 of file kernel_overload_mk.h.
#define MkBufferToObject_E | ( | ... | ) |
Definition at line 41 of file kernel_overload_mk.h.
#define MkBufferToObject_e | ( | ... | ) |
Definition at line 43 of file kernel_overload_mk.h.
#define MkBufferToObject_NULL | ( | ... | ) |
Definition at line 39 of file kernel_overload_mk.h.
append a single string to a MkBufferC object …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | buf | the MkBufferS instance to work on |
[in] | val | the text to append to buf |
Example from server.c
→ read and update a MkBufferC
// START - ReadBUF - Example, read a buffer-object and append a string MK_BUF buf; MqReadBUF_E (mqctx,&buf); MkBufferAppendSTR(buf,"- a really log text to overwrite the already allocated space"); MqSendBUF_E (mqctx,buf); MqReadI32_E (mqctx,&i); MqSendI32_E (mqctx,i+1); // END - ReadBUF - Example
append a single string to a MkBufferC object …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | buf | the MkBufferS instance to work on |
[in] | val | the text to append to buf |
Example from server.c
→ read and update a MkBufferC
// START - ReadBUF - Example, read a buffer-object and append a string MK_BUF buf; MqReadBUF_E (mqctx,&buf); MkBufferAppendSTR(buf,"- a really log text to overwrite the already allocated space"); MqSendBUF_E (mqctx,buf); MqReadI32_E (mqctx,&i); MqSendI32_E (mqctx,i+1); // END - ReadBUF - Example
append a single string with format and ... arguments to a MkBuffer64S …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | buf | the MkBufferS instance to work on |
[in] | printfmt | is a c-string used as printf like format string |
MK_I32 MkBufferAppendVL_RT | ( | MK_RT | mkrt, |
MK_BUF const | buf, | ||
MK_FST const | printfmt, | ||
va_list | var_list ) |
append a single string with format and var_list arguments to a MkBuffer64S …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | buf | the MkBufferS instance to work on |
[in] | printfmt | is a c-string used as printf like format string |
[in] | var_list | a variable argument list object |
delete str from the MkBufferC …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | buf | the MkBufferS instance to work on |
val | the text (string) to remove from buf |
add str to the MkBufferC …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | buf | the MkBufferS instance to work on |
val | the text (string) to append to buf |
enum MkErrorE MkBufferToObject_RT | ( | MK_RT | mkrt, |
MK_BUF const | buf, | ||
MK_NAT_OBJECT * | obj_out ) |
return the native language object from a MkBufferC …