MkBufferC - various functions to work on buffer-data … More...
Collaboration diagram for MkBufferC_Misc_C_API:Functions | |
| MK_I32 | MkBufferCmp_RT (MK_RT mkrt, MK_BUFN const buf1, MK_BUFN const buf2) |
compare TWO MkBufferC objects like strcmp do it for strings … | |
| enum MkErrorE | MkBufferCastTo_RT (MK_RT mkrt, MK_BUF const buf, enum MkTypeE const typ) |
| change the type of an MkBufferC to type … | |
| MK_STRN | MkBufferToString_RT (MK_RT mkrt, MK_BUFN const inst) |
| String-Slot - returns the string representation of the inst … | |
| MK_BUF | MkBufferSizeNew_RT (MK_RT mkrt, MK_BUF const buf, MK_NUM const size) |
| alloc min size storage to the buf … | |
| MK_BUF | MkBufferSizeAdd_RT (MK_RT mkrt, MK_BUF const buf, MK_NUM const size) |
| add size storage to the buf … | |
| MK_BUF | MkBufferReset_RT (MK_RT mkrt, MK_BUF const buf) |
| reset a MkBufferC to the length zero … | |
| void | MkBufferResetFull_RT (MK_RT mkrt, MK_BUF const buf) |
| reset a MkBufferC to the length zero and free allocated storage… | |
| MK_BUF | MkBufferCopy_RT (MK_RT mkrt, MK_BUF const buf, MK_BUFN const srce) |
| copy the MkBufferC from srce to dest … | |
| MK_BUF | MkBufferTemp_RT (MK_RT mkrt, MK_BUFN const buf) |
| create a temporary copy of the MkBufferC buf … | |
MkBufferC - MkBufferC_Misc_C_API - overload | |
| #define | MkBufferCopy_NULL(...) |
| #define | MkBufferCopy(...) |
| #define | MkBufferReset_NULL(...) |
| #define | MkBufferReset(...) |
| #define | MkBufferSizeAdd_NULL(...) |
| #define | MkBufferSizeAdd(...) |
| #define | MkBufferSizeNew_NULL(...) |
| #define | MkBufferSizeNew(...) |
| #define | MkBufferTemp_NULL(...) |
| #define | MkBufferTemp(...) |
| #define | MkBufferCastTo_NULL(...) |
| #define | MkBufferCastTo(...) |
| #define | MkBufferCastTo_E(...) |
| #define | MkBufferCastTo_C(...) |
| #define | MkBufferCmp_NULL(...) |
| #define | MkBufferCmp(...) |
| #define | MkBufferResetFull_NULL(...) |
| #define | MkBufferResetFull(...) |
| #define | MkBufferToString_NULL(...) |
| #define | MkBufferToString(...) |
MkBufferC - various functions to work on buffer-data …
| #define MkBufferCastTo | ( | ... | ) |
Definition at line 215 of file kernel_overload_mk.h.
| #define MkBufferCastTo_C | ( | ... | ) |
Definition at line 217 of file kernel_overload_mk.h.
| #define MkBufferCastTo_E | ( | ... | ) |
Definition at line 216 of file kernel_overload_mk.h.
| #define MkBufferCastTo_NULL | ( | ... | ) |
Definition at line 214 of file kernel_overload_mk.h.
| #define MkBufferCmp | ( | ... | ) |
Definition at line 219 of file kernel_overload_mk.h.
| #define MkBufferCmp_NULL | ( | ... | ) |
Definition at line 218 of file kernel_overload_mk.h.
| #define MkBufferCopy | ( | ... | ) |
Definition at line 203 of file kernel_overload_mk.h.
| #define MkBufferCopy_NULL | ( | ... | ) |
Definition at line 202 of file kernel_overload_mk.h.
| #define MkBufferReset | ( | ... | ) |
Definition at line 205 of file kernel_overload_mk.h.
| #define MkBufferReset_NULL | ( | ... | ) |
Definition at line 204 of file kernel_overload_mk.h.
| #define MkBufferResetFull | ( | ... | ) |
Definition at line 221 of file kernel_overload_mk.h.
| #define MkBufferResetFull_NULL | ( | ... | ) |
Definition at line 220 of file kernel_overload_mk.h.
| #define MkBufferSizeAdd | ( | ... | ) |
Definition at line 207 of file kernel_overload_mk.h.
| #define MkBufferSizeAdd_NULL | ( | ... | ) |
Definition at line 206 of file kernel_overload_mk.h.
| #define MkBufferSizeNew | ( | ... | ) |
Definition at line 209 of file kernel_overload_mk.h.
| #define MkBufferSizeNew_NULL | ( | ... | ) |
Definition at line 208 of file kernel_overload_mk.h.
| #define MkBufferTemp | ( | ... | ) |
Definition at line 211 of file kernel_overload_mk.h.
| #define MkBufferTemp_NULL | ( | ... | ) |
Definition at line 210 of file kernel_overload_mk.h.
| #define MkBufferToString | ( | ... | ) |
Definition at line 223 of file kernel_overload_mk.h.
| #define MkBufferToString_NULL | ( | ... | ) |
Definition at line 222 of file kernel_overload_mk.h.
change the type of an MkBufferC to type …
| [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] | typ | cast buf to typ |
| MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
compare TWO MkBufferC objects like strcmp do it for strings …
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | buf1 | the FIRST MkBufferC object to compare |
| [in] | buf2 | the SECOND MkBufferC object to compare |
copy the MkBufferC from srce to dest …
| [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 |
| srce | source of the copy |
reset a MkBufferC to the length zero …
| [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 |
MkBufferC::ResetFull $buf reset a MkBufferC to the length zero and free allocated storage…
In addition to MkBufferC [MkBufferC::Reset $buf] the allocated storage is freed and reset to ILS
| [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 |
MkBufferC [MkBufferC::Reset $buf] add size storage to the buf …
| [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] | size | The initial size of the instance-local-storage. The MkBufferC has dynamic-memory-management, the size value is just a hint to provide enought memory for future tasks. The real size created is the maximum of type-ILS-size and size . (default: 0 = use the type-ILS-size) |
alloc min size storage to the buf …
| [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] | size | The initial size of the instance-local-storage. The MkBufferC has dynamic-memory-management, the size value is just a hint to provide enought memory for future tasks. The real size created is the maximum of type-ILS-size and size . (default: 0 = use the type-ILS-size) |
create a temporary copy of the MkBufferC buf …
This function always return the same global memory from the per-thread-runtime-storage initialized with buf. This storage must not be freed and should only be used for temporary-short-time usage. In theory every function-call in the same thread could overwrite this memory.
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| buf | - the source of the copy |
"MK_NULL" for a non-error result.String-Slot - returns the string representation of the inst …
The string is a human-readable form of the data stored in the object.
ToString function by default.| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | inst | - the instance to work on |
"MK_NULL" on error "MK_NULL" for a non-error result.