MkBufferC - define the class … More...
Topics | |
MkBufferC_Class_Define_C_API | |
MkBufferC - low level definition, access and cast … | |
Typedefs | |
typedef struct MkBufferS * | MK_BUF |
class-shortcut for struct MkBufferS * , all shortcut using the XX_YYY syntax (only for public API) … | |
typedef const struct MkBufferS * | MK_BUFN |
class-shortcut for const struct MkBufferS * , all const shortcut using the XX_YYYC syntax (only for public API) … | |
typedef struct MkBufferS | 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 | MkBufferHandleGet_RT (MK_RT mkrt, MK_BUF const buf) |
Handle-Get-Slot - returns a export-hdl to the MkBufferC useable for external storage | |
MK_BUF | MkBufferHandleResolve_RT (MK_RT 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 | 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 | MkBufferInstances_RT (MK_PARSER_RT_ONLY) |
get head-instance from linked-list of MkBufferS type … | |
MK_BUF | MkBufferNext (MK_BUF const buf) |
get next instance from linked-list of MkBufferS type | |
MK_BUF | MkBufferPrev (MK_BUF const buf) |
get previous instance from linked-list of MkBufferS type | |
MkBufferC - Export - function | |
MK_EXTERN MK_BUF | MkBufferHandleResolveP (MK_RT mkrt, MK_HDL const netHdl) |
Non-inline replacement for MkBufferHandleResolve … | |
MK_EXTERN MK_HDL | MkBufferHandleGetP (MK_RT mkrt, MK_BUF const buf) |
Non-inline replacement for MkBufferHandleGet … | |
MkBufferC - Introspection - function | |
MK_EXTERN MK_BUF | MkBufferNextP (MK_BUF const buf) |
Non-inline replacement for MkBufferNext … | |
MK_EXTERN MK_BUF | MkBufferPrevP (MK_BUF const buf) |
Non-inline replacement for MkBufferPrev … | |
MK_EXTERN MK_BUF | MkBufferInstancesP (MK_PARSER_RT_ONLY) |
Non-inline replacement for MkBufferInstances … | |
MkBufferC - Misc - function | |
MK_EXTERN MK_BUF | MkBufferGetNullP (void) |
Non-inline replacement for MkBufferGetNull … | |
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 5478 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.
class-shortcut for struct MkBufferS *
, all shortcut using the XX_YYY
syntax (only for public API) …
Definition at line 1393 of file LibMkKernel_mk.h.
class-shortcut for const struct MkBufferS *
, all const shortcut using the XX_YYYC
syntax (only for public API) …
Definition at line 1396 of file LibMkKernel_mk.h.
reference-shortcut for struct MkBufferS
, all shortcut using the XX_YYYR
syntax (only for public API) …
Definition at line 1399 of file LibMkKernel_mk.h.
|
inline |
Null-Slot - return a MkBufferC typed NULL
instance …
Definition at line 5503 of file LibMkKernel_mk.h.
Non-inline replacement for MkBufferGetNull …
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 5445 of file LibMkKernel_mk.h.
Non-inline replacement for MkBufferHandleGet …
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 5462 of file LibMkKernel_mk.h.
Non-inline replacement for MkBufferHandleResolve …
|
inline |
get head-instance from linked-list of MkBufferS type …
The head-instance is the last instance created.
Definition at line 12363 of file LibMkKernel_mk.h.
MK_EXTERN MK_BUF MkBufferInstancesP | ( | MK_PARSER_RT_ONLY | ) |
Non-inline replacement for MkBufferInstances …
get next instance from linked-list of MkBufferS type
Definition at line 12370 of file LibMkKernel_mk.h.
Non-inline replacement for MkBufferNext …
get previous instance from linked-list of MkBufferS type
Definition at line 12377 of file LibMkKernel_mk.h.
Non-inline replacement for MkBufferPrev …