MkBufferListC_def_mk.h - 28 Oct 2024 - aotto1968. More...
#include "decl_mk.h"
Go to the source code of this file.
Data Structures | |
struct | MkBufferListS |
The CLASS used to store a list of MkBufferS items into a flat array… More... | |
Macros | |
#define | MkBufferListS_bls_size 32 |
ILS size | |
#define | MkBufferListCreateTLS_T(name, num) |
create a MkBufferListC instance as thread-local-torage … | |
#define | MkBufferListCreateSTATIC_T(name, num) |
create a MkBufferListC instance on static-storage … | |
#define | MkBufferListCreateLOCAL_T(name, num) |
create a MkBufferListC instance on local-memory and return an pointer as instance … | |
#define | MkBufferListCreateTLS_inout_T(name, num, inout) |
create a MkBufferListC instance as thread-local-torage OR reuse inout if possible… | |
#define | MkBufferListSizeI(bfl) |
#define | MkBufferListCheckOptionO_3E(bfl, opt, val_out) |
#define | MkBufferListCheckOptionI_3E(bfl, opt, val_out) |
MkBufferListC - signature define | |
#define | MkBufferListC_SIGNATURE (MkObjectC_SIGNATURE ^ (2u<<10)) |
#define | MkBufferListC_MASK (((1u<<22)-1)<<10) |
MkBufferListC - cast to superclass | |
#define | MkBufferListC_X2bfl(x) |
#define | MkBufferListC_X2obj(x) |
Functions | |
MK_BFL | MkBufferListCreate_RT (MK_RT mkrt, MK_NUM const size) |
Constructs a MkBufferC instance with size storage… | |
MK_BFL | MkBufferListCreateTLS_RT (MK_RT mkrt, MK_STRN const tlsName, bool const resetB) |
same as BufferListCreate but require no cleanup … | |
void | MkBufferListCreateTLS_T (MK_MACRO_TYP name, MK_NUM const num) |
void | MkBufferListCreateSTATIC_T (MK_MACRO_TYP name, MK_NUM const num) |
void | MkBufferListCreateLOCAL_T (MK_MACRO_TYP name, MK_NUM const num) |
void | MkBufferListCreateTLS_inout_T (MK_MACRO_TYP name, MK_NUM const num, MK_BFL *inout) |
MK_BFL | MkBufferListCreateVC_RT (MK_RT mkrt, MK_NUM const argc, MK_STRN const *argv) |
Constructs a MkBufferListC instance with a argc/argv data from a list of strings … | |
MK_BFL | MkBufferListCreateVAL_RT (MK_RT mkrt, MK_STRN const arg0, va_list var_list) |
Constructs a MkBufferListC instance with a va_list argument … | |
MK_BFL | MkBufferListCreateVA_RT (MK_RT mkrt, MK_STRN const arg0,...) |
Constructs a MkBufferListC instance with a varargs argument that ends with MK_NULL … | |
MK_BFL | MkBufferListCreateLA_RT (MK_RT mkrt, MK_BAC const args) |
Constructs a MkBufferListC instance with an other MkBufferListC OR a list of arguments (only in NON C) | |
MK_BFL | MkBufferListDup_RT (MK_RT mkrt, MK_BFLN const bfl) |
Dup-Constructor - create a new MkBufferListC instance as copy from an existing MkBufferListC instance … | |
MK_BFL | MkBufferListMerge_RT (MK_RT mkrt, MK_BFL const bfl) |
Merge-Constructor - constructs a MkBufferListC instance as a merge from an existing MkBufferListC instance … | |
void | MkBufferListInit_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const num) |
initialize an already allocated MkBufferListC | |
void | MkBufferListFree_RT (MK_RT mkrt, MK_BFL const bfl) |
free the internal data but keep the outher shell alive | |
void | MkBufferListDelete_RT (MK_RT mkrt, MK_BFL bfl) |
Destructor - delete a MkBufferListC instance … | |
void | MkBufferListMove_RT (MK_RT mkrt, MK_BFL const to, MK_BFL const from) |
move all internal data from from to the end of to … | |
void | MkBufferListCopy_RT (MK_RT mkrt, MK_BFL const bfl, MK_BFLN const src) |
copy all internal data from src to tgt … | |
MK_BFL | MkBufferListPositionMerge_RT (MK_RT mkrt, MK_BFL const bfl, MK_BFL const source, MK_NUM position) |
merge a MkBufferListS list into an MkBufferListS object on position … | |
MK_NUM | MkBufferListSearchC_RT (MK_RT mkrt, MK_BFLN const bfl, MK_STRN const str, MK_NUM const len, MK_NUM const startindex) |
search MK_STR item from a MkBufferListS object starting at startindex … | |
MK_BFL | MkBufferListReset_RT (MK_RT mkrt, MK_BFL bfl) |
reset a MkBufferListC object … | |
MK_STRN | MkBufferListToString_RT (MK_RT mkrt, MK_BFLN const bfl) |
get a string representation of the bfl | |
MK_NAT_LIST | MkBufferListToList_RT (MK_RT mkrt, MK_BFLN const bfl) |
get a target-language list representation of the bfl … | |
MK_STRN_A | MkBufferListToStringList_RT (MK_RT mkrt, MK_BFLN const bfl, bool const unique) |
get a string-list representation of the bfl | |
MK_BUF | MkBufferListToBuffer_RT (MK_RT mkrt, MK_BFLN const bfl) |
Export a bfl into an MkBufferC using an MkBufferStreamC … | |
MK_I32 | MkBufferListCmp_RT (MK_RT mkrt, MK_BFLN const bfl, MK_BFLN const bfl2) |
compare two buffer-list … | |
MK_BFL | MkBufferListSort_RT (MK_RT mkrt, MK_BFL const bfl) |
sort a MkBufferListC … | |
void | MkBufferListReserve_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const num) |
reserve num items in a MkBufferListC object … | |
MK_NUM | MkBufferListSize_RT (MK_RT mkrt, MK_BFLN const bfl) |
get the number-of-items in the bfl … | |
MK_BFL | MkBufferListFileGlob_RT (MK_RT mkrt, MK_STRN const pattern_match) |
create a new MkBufferListC using the result from a filesystem glob operation … | |
MK_BFL | MkBufferListAppendLP_RT (MK_RT mkrt, MK_BFL const bfl, MK_BFL const addBufL, MK_NUM position) |
copy a MkBufferListS list into an MkBufferListS object on position … | |
MK_BFL | MkBufferListAppendVC_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const argc, MK_STRN const *const argv) |
append a argc/argv list of strings to an MkBufferListS object … | |
MK_BFL | MkBufferListAppendVAL_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN arg0, va_list var_list) |
append a variable number of strings to an MkBufferListS object … | |
MK_BFL | MkBufferListAppendVA_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN arg0,...) |
append a variable number of strings to an MkBufferListS object … | |
MK_BFL | MkBufferListAppendLA_RT (MK_RT mkrt, MK_BFL const bfl, MK_BAC const args) |
append a variable number of MkBufferC object's to an MkBufferListC object using an other MkBufferListC OR a list of arguments (only in NON C) | |
void | MkBufferListAppendI8_RT (MK_RT mkrt, MK_BFL const bfl, MK_I8 const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendBOL_RT (MK_RT mkrt, MK_BFL const bfl, MK_BOL const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendI16_RT (MK_RT mkrt, MK_BFL const bfl, MK_I16 const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendI32_RT (MK_RT mkrt, MK_BFL const bfl, MK_I32 const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendFLT_RT (MK_RT mkrt, MK_BFL const bfl, MK_FLT const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendI64_RT (MK_RT mkrt, MK_BFL const bfl, MK_I64 const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendG_RT (MK_RT mkrt, MK_BFL const bfl, MK_LONG const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendDBL_RT (MK_RT mkrt, MK_BFL const bfl, MK_DBL const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendBIN_RT (MK_RT mkrt, MK_BFL const bfl, MkBinaryR const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_BUF const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
void | MkBufferListAppendUP_RT (MK_RT mkrt, MK_BFL const bfl, MK_BUF const addBuf, MK_NUM position) |
append a MkBufferC item into an MkBufferListC object on position … | |
void | MkBufferListAppendVL_RT (MK_RT mkrt, MK_BFL const bfl, MK_FST const printfmt, va_list var_list) |
append an printf like format object to the end of an MkBufferListS object … | |
void | MkBufferListAppendV_RT (MK_RT mkrt, MK_BFL const bfl, MK_FST const printfmt,...) |
append an printf like format object to the end of an MkBufferListS object … | |
void | MkBufferListAppendStringR_RT (MK_RT mkrt, MK_BFL const bfl, MkStringR const val) |
append a native PRIMITIVE TYPE object to a MkBufferListC … | |
bool | MkBufferListCheckOption_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, bool const onlyFirst) |
search for boolean option in MkBufferListS list and return MK_BOL value … | |
enum MkErrorE | MkBufferListCheckOptionBOL_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, bool const defval, bool const onlyFirst, bool *const val_out) |
search for opt in MkBufferListS list and fill var with opt_argument or the defval value … | |
enum MkErrorE | MkBufferListCheckOptionI8_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_I8 const defval, bool const onlyFirst, MK_I8 *const val_out) |
search for opt in MkBufferListS list and fill var with opt_argument or the defval value … | |
enum MkErrorE | MkBufferListCheckOptionI16_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_I16 const defval, bool const onlyFirst, MK_I16 *const val_out) |
search for opt in MkBufferListS list and fill var with opt_argument or the defval value … | |
enum MkErrorE | MkBufferListCheckOptionI32_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_I32 const defval, bool const onlyFirst, MK_I32 *const val_out) |
search for opt in MkBufferListS list and fill var with opt_argument or the defval value … | |
enum MkErrorE | MkBufferListCheckOptionFLT_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_FLT const defval, bool const onlyFirst, MK_FLT *const val_out) |
search for opt in MkBufferListS list and fill var with opt_argument or the defval value … | |
enum MkErrorE | MkBufferListCheckOptionI64_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_I64 const defval, bool const onlyFirst, MK_I64 *const val_out) |
search for opt in MkBufferListS list and fill var with opt_argument or the defval value … | |
enum MkErrorE | MkBufferListCheckOptionDBL_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_DBL const defval, bool const onlyFirst, MK_DBL *const val_out) |
search for opt in MkBufferListS list and fill var with opt_argument or the defval value … | |
enum MkErrorE | MkBufferListCheckOptionSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_STRN const defval, bool const onlyFirst, MK_STRN *const val_out) |
search for opt in MkBufferListS list and fill var with opt_argument or the defval value … | |
enum MkErrorE | MkBufferListCheckOptionBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_BUF const defval, bool const onlyFirst, MK_BUF *const val_out) |
search for opt in MkBufferListS list and fill var with opt_argument or the defval value … | |
enum MkErrorE | MkBufferListIndexDelete_RT (MK_RT mkrt, MK_BFL const bfl, const MK_NUM index, const MK_NUM numitems, const bool doDelete) |
delete the index'th list item from the MkBufferListS object … | |
enum MkErrorE | MkBufferListIndexExtract_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF *const val_out) |
extract (read & delete) the index object from bfl … | |
enum MkErrorE | MkBufferListIndexGet_RT (MK_RT mkrt, MK_BFLN const bfl, MK_NUM const index, MK_BUF *const val_out) |
get (read only) the index object from bfl … | |
enum MkErrorE | MkBufferListIndexSet_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF const buf) |
set the index object from bfl … | |
MK_BUF | MkBufferListIndexGetBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM index) |
get the index element from MkBufferListC ... if not available… create it. … | |
void | MkBufferListIndexSetBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF const buf) |
set the index element from MkBufferListC ... if not available… createspace … | |
MK_STRN | MkBufferListIndexGetSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index) |
get the index element from MkBufferListC ... as string. … | |
void | MkBufferListIndexSetSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_STRN const str) |
set the index element from MkBufferListC ... to string… if not available… create space … | |
void | MkBufferListLog_RT (MK_RT mkrt, MK_BFLN bfl, MK_OBJN const fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl) |
write the detail-summary of the MkBufferListC to MkLogFileC (default: stderr) … | |
void | MkBufferListLogS_RT (MK_RT mkrt, MK_BFLN const bfl, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc) |
write the short-summary of the MkBufferListC to MkLogFileC (default: stderr) … | |
void | MkBufferListLogSS_RT (MK_RT mkrt, MK_BFLN const bfl, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc) |
write the very-short-summary of the MkBufferListC to MkLogFileC (default: stderr) … | |
void | MkBufferListLogSSS_RT (MK_RT mkrt, MK_BFLN const bfl, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc) |
write the very-very-short-summary of the MkBufferListC to MkLogFileC (default: stderr) … | |
MkBufferListC - Misc - function - unspecified functions to perform different tasks | |
MK_BFL | MkBufferListGetNull (void) |
Null-Slot - return a MkBufferListC typed NULL instance … | |
MkBufferListC - type definition | |
#define | MkBufferListC_T (&MK_RT_REF._MkBufferListC_T) |
class as MkSuperTypeS-class-type, useable in a class-macro as: class##_T … | |
#define | MkBufferListC_TT (MkTYP(MkBufferListC_T)) |
class as MkTypeS-class-type, useable in a class-macro as: class##_TT … | |
#define | MkBufferListST MkBufferListC_T |
instance-type as MkSuperTypeS-class-type … | |
#define | MkBufferListSTT (MkTYP(MkBufferListST)) |
instance-type as MkTypeS-class-type (cast from MkBufferListST into MkTypeS ) … | |
#define | MkBufferListC_type MK_BFL |
same as MkBufferListS but useable in a class-macro as: class##_type … | |
#define | MkBufferListCT_X(instance) |
cast from an instance into the MkSuperTypeS-class-type … | |
#define | MkBufferListCTT_X(instance) |
cast from an instance into the MkTypeS-class-type … | |
#define | MkBufferListCT_TT(typ) |
cast from an MkTypeS-class-type into an MkSuperTypeS-class-type … | |
#define | MkBufferListC_NS MK |
map class to namespace … | |
#define | MkBufferListCTT MkBufferListCTT |
class as MkTypeS-class-type for MkBufferListC in the Target-Programming-Language (TPL) … | |
#define | MkBufferListCT ( (struct MkSuperTypeS *) MkBufferListCTT ) |
class as MkSuperTypeS-class-type for MkBufferListC in the Target-Programming-Language (TPL) … | |
typedef struct MkBufferListS | MkBufferListCR |
instance-struct-reference same as struct MkBufferListS , useable in a class-macro as: class##R … | |
typedef const struct MkBufferListS | MkBufferListCNR |
const instance-struct-reference same as const struct MkBufferListS , useable in a class-macro as: class##R … | |
MkBufferListC - signature check | |
#define | MkBufferListC_Check(mng) |
bool | MkBflCheck (MK_MNGN mng) |
check MkBufferListS -> MkObjectS::signature … | |
bool | MkBflCheckO (MK_OBJN obj) |
check MkBufferListS -> MkObjectS::signature … | |
MkBufferListC - cast from a defined or a undefined instance | |
#define | MkBflRaise(_bfl) |
raise an error if class-instance is not valid | |
#define | MkBFL_R(x) |
cast a known-object into an MkBufferListS reference | |
#define | MkBFL(x) |
cast a known-object into an MkBufferListS pointer | |
MK_BFL | MkBfl (MK_MNG mng) |
cast a unknown-object into an MkBufferListS pointer or NULL if not possible | |
MK_BFLN | MkBflN (MK_MNGN mng) |
(const) cast a unknown-object into an MkBufferListS pointer or NULL if not possible | |
MkBufferListC - Export - inline - interact with an external software | |
#define | MkBufferListHandleResolve_e(netHdl) |
wrapper for MkBufferListHandleResolve with error-handline | |
MK_HDL | MkBufferListHandleGet_RT (MK_RT mkrt, MK_BFL const bfl) |
Handle-Get-Slot - returns a export-hdl to the MkBufferListC useable for external storage | |
MK_BFL | MkBufferListHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl) |
Handle-Resolve-Slot - return a MkBufferListC from netHdl or MK_NULL if invalid… | |
MkBufferListC_def_mk.h - 28 Oct 2024 - aotto1968.
Definition in file MkBufferListC_def_mk.h.
#define MkBufferListS_bls_size 32 |
ILS size
Definition at line 87 of file MkBufferListC_def_mk.h.