MkBufferC - define the class … More...
Topics | |
MkBufferC_Class_Define_C_API | |
MkBufferC - low level definition, access and cast … | |
Typedefs | |
typedef struct MkBufferS * | libmkkernel::MK_BUF |
class-shortcut for struct MkBufferS * , all shortcut using the XX_YYY syntax (only for public API) … | |
typedef const struct MkBufferS * | libmkkernel::MK_BUFN |
class-shortcut for const struct MkBufferS * , all const shortcut using the XX_YYYC syntax (only for public API) … | |
typedef struct MkBufferS | libmkkernel::MK_BUFR |
reference-shortcut for struct MkBufferS , all shortcut using the XX_YYYR syntax (only for public API) … | |
MkBufferC - Export - inline - interact with an external software | |
MK_HDL | libmkkernel::MkBufferHandleGet_RT (MK_RT const mkrt, MK_BUF const buf) |
Handle-Get-Slot - returns a export-hdl to the MkBufferC useable for external storage | |
MK_RT_ATTR_HDL MK_BUF | libmkkernel::MkBufferHandleResolve_RT (MK_RT const mkrt, MK_HDL const netHdl) |
Handle-Resolve-Slot - return a MkBufferC from netHdl or MK_NULL if invalid… | |
#define | MkBufferHandleResolve_e(netHdl) |
wrapper for MkBufferHandleResolve with error-handline | |
MkBufferC - Misc - function - unspecified functions to perform different tasks | |
MK_BUF | libmkkernel::MkBufferGetNull (void) |
Null-Slot - return a MkBufferC typed NULL instance … | |
MkBufferC - Introspection - inline - access to all instances created by class starting with the last one | |
MK_BUF | libmkkernel::MkBufferInstances_RT (MK_RT_PARSER_ONLY) |
get head-instance from linked-list of MkBufferS type … | |
MK_ATTR_HDL MK_BUF | libmkkernel::MkBufferNext (MK_BUF const buf) |
get next instance from linked-list of MkBufferS type | |
MK_ATTR_HDL MK_BUF | libmkkernel::MkBufferPrev (MK_BUF const buf) |
get previous instance from linked-list of MkBufferS type | |
MkBufferC - Export - overload | |
#define | MkBufferHandleResolve_NULL(...) |
#define | MkBufferHandleResolve(...) |
#define | MkBufferHandleGet_NULL(...) |
#define | MkBufferHandleGet(...) |
MkBufferC - Introspection - overload | |
#define | MkBufferInstances_NULL() |
#define | MkBufferInstances() |
MkBufferC - define the class …
#define MkBufferHandleGet | ( | ... | ) |
Definition at line 58 of file kernel_overload_mk.h.
#define MkBufferHandleGet_NULL | ( | ... | ) |
Definition at line 57 of file kernel_overload_mk.h.
#define MkBufferHandleResolve | ( | ... | ) |
Definition at line 54 of file kernel_overload_mk.h.
#define MkBufferHandleResolve_e | ( | netHdl | ) |
wrapper for MkBufferHandleResolve with error-handline
[in] | netHdl | The handle previously returned by MkObjectHandleGet. |
MK_NULL
with an error set.0
than MK_NULL
is returned and the upper-code decide how to deal with it.MK_NULL
if the netHdl is invalid or the underlying object has already been deleted.MK_NULL
is returned than an error-message is created and a jump to the label error is done.Definition at line 5424 of file LibMkKernel_mk.h.
#define MkBufferHandleResolve_NULL | ( | ... | ) |
Definition at line 53 of file kernel_overload_mk.h.
#define MkBufferInstances | ( | ) |
Definition at line 69 of file kernel_overload_mk.h.
#define MkBufferInstances_NULL | ( | ) |
Definition at line 68 of file kernel_overload_mk.h.
typedef struct MkBufferS* libmkkernel::MK_BUF |
class-shortcut for struct MkBufferS *
, all shortcut using the XX_YYY
syntax (only for public API) …
Definition at line 1554 of file LibMkKernel_mk.h.
typedef const struct MkBufferS* libmkkernel::MK_BUFN |
class-shortcut for const struct MkBufferS *
, all const shortcut using the XX_YYYC
syntax (only for public API) …
Definition at line 1557 of file LibMkKernel_mk.h.
typedef struct MkBufferS libmkkernel::MK_BUFR |
reference-shortcut for struct MkBufferS
, all shortcut using the XX_YYYR
syntax (only for public API) …
Definition at line 1560 of file LibMkKernel_mk.h.
|
inline |
Null-Slot - return a MkBufferC typed NULL
instance …
Definition at line 5448 of file LibMkKernel_mk.h.
Handle-Get-Slot - returns a export-hdl to the MkBufferC useable for external storage
The export-hdl is a reference to an instance that can be stored in software and converted back into an instance using the MkBufferHandleResolve.
The export-hdl is only valid until the Programming-Language-Micro-Kernel (PLMK) ends.
example: The export-hdl is used in rpc to identify an object across the network.
[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 |
Definition at line 5391 of file LibMkKernel_mk.h.
|
inline |
Handle-Resolve-Slot - return a MkBufferC from netHdl or MK_NULL
if invalid…
The MkBufferHandleResolve undo the MkBufferHandleGet and is intended to export a unique identifer into external code not belonging to the Programming-Language-Micro-Kernel (PLMK).
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | netHdl | handle former exported with MkBufferHandleGet |
MK_NULL
if netHdl is invalid Definition at line 5408 of file LibMkKernel_mk.h.
|
inline |
get head-instance from linked-list of MkBufferS type …
The head-instance is the last instance created.
Definition at line 12254 of file LibMkKernel_mk.h.
|
inline |
get next instance from linked-list of MkBufferS type
Definition at line 12261 of file LibMkKernel_mk.h.
|
inline |
get previous instance from linked-list of MkBufferS type
Definition at line 12268 of file LibMkKernel_mk.h.