MkBufferC - various functions to access buffer-data … More...
Collaboration diagram for MkBufferC_Access_C_API:Functions | |
| MK_BUF | MkBufferAppendC_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 | MkBufferAppendC_NULL(...) |
| #define | MkBufferAppendC(...) |
| #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 MkBufferAppendC | ( | ... | ) |
Definition at line 21 of file kernel_overload_mk.h.
| #define MkBufferAppendC_NULL | ( | ... | ) |
Definition at line 20 of file kernel_overload_mk.h.
| #define MkBufferAppendStringR | ( | ... | ) |
Definition at line 23 of file kernel_overload_mk.h.
| #define MkBufferAppendStringR_NULL | ( | ... | ) |
Definition at line 22 of file kernel_overload_mk.h.
| #define MkBufferAppendV | ( | ... | ) |
Definition at line 27 of file kernel_overload_mk.h.
| #define MkBufferAppendV_NULL | ( | ... | ) |
Definition at line 26 of file kernel_overload_mk.h.
| #define MkBufferAppendVL | ( | ... | ) |
Definition at line 29 of file kernel_overload_mk.h.
| #define MkBufferAppendVL_NULL | ( | ... | ) |
Definition at line 28 of file kernel_overload_mk.h.
| #define MkBufferPop | ( | ... | ) |
Definition at line 31 of file kernel_overload_mk.h.
| #define MkBufferPop_NULL | ( | ... | ) |
Definition at line 30 of file kernel_overload_mk.h.
| #define MkBufferPush | ( | ... | ) |
Definition at line 33 of file kernel_overload_mk.h.
| #define MkBufferPush_NULL | ( | ... | ) |
Definition at line 32 of file kernel_overload_mk.h.
| #define MkBufferToObject | ( | ... | ) |
Definition at line 37 of file kernel_overload_mk.h.
| #define MkBufferToObject_C | ( | ... | ) |
Definition at line 39 of file kernel_overload_mk.h.
| #define MkBufferToObject_E | ( | ... | ) |
Definition at line 38 of file kernel_overload_mk.h.
| #define MkBufferToObject_e | ( | ... | ) |
Definition at line 40 of file kernel_overload_mk.h.
| #define MkBufferToObject_NULL | ( | ... | ) |
Definition at line 36 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.rb → read and update a MkBufferC
# ReadBUF - Example, read a buffer-object and append a string buf = ReadBUF() buf.AppendC("- a really log text to overwrite the already allocated space") SendBUF(buf) SendI32(ReadI32()+1)
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.rb → read and update a MkBufferC
# ReadBUF - Example, read a buffer-object and append a string buf = ReadBUF() buf.AppendC("- a really log text to overwrite the already allocated space") SendBUF(buf) SendI32(ReadI32()+1)
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 …