24 inline MkBufferC::MkBufferC (
const MkBufferC *copy) {
30 inline MkBufferC::MkBufferC (
const MkBufferC& copy) {
72 const MK_STRN val_hdl = val.c_str();
91 va_start (ap, printfmt);
114 const MK_STRN val_hdl = val.c_str();
129 const MK_STRN val_hdl = val.c_str();
244 MK_BNP val_out = std::make_pair(val_out_ref.
size,val_out_ref.
data);
308 return (
MK_I8)val_out;
326 const std::string& val_out = std::string(val_out_ref.
ptr,val_out_ref.
len);
375 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
565 const MK_STRN val_hdl = val.c_str();
608 if (__retVal__L == NULL) {
611 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
620 if (__retVal__L == NULL) {
623 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
632 if (__retVal__L == NULL) {
635 return (
MK_OBJ)__retVal__L;
642 if (__retVal__L == NULL) {
645 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
652 if (__retVal__L == NULL) {
655 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
662 if (__retVal__L == NULL) {
665 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
672 if (__retVal__L == NULL) {
675 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
683 if (__retVal__L == NULL) {
686 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
693 if (__retVal__L == NULL) {
696 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
704 if (__retVal__L == NULL) {
707 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
715 if (__retVal__L == NULL) {
718 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
725 if (__retVal__L == NULL) {
728 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
735 if (__retVal__L == NULL) {
738 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
745 if (__retVal__L == NULL) {
748 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
755 if (__retVal__L == NULL) {
758 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
765 if (__retVal__L == NULL) {
768 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
775 if (__retVal__L == NULL) {
778 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
785 if (__retVal__L == NULL) {
788 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
794 const MK_STRN val_hdl = val.c_str();
796 if (__retVal__L == NULL) {
799 return MkBufferC::MkBufferC_ObjCreate(
MK_RT_CALL __retVal__L);
814 const MK_STRN tlsName_hdl = tlsName.c_str();
#define MkErrorC_Check(errObj, errVal)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE … → C-API: libm...
The CLASS used to store a list of MkBufferS items into a flat array… → C-API: libmkkernel::MkBuffe...
constructor return MK_NULL
object header … → C-API: libmkkernel::MkObjectS
reference argument is MK_NULL
MK_NUM Pop(MK_STRN val)
C++: MK_NUM buf.Pop(MK_STRN val) → C-API delete str from the MkBufferC …
MkBufferC * AppendStringR(const std::string &val)
C++: MkBufferC* buf.AppendStringR(const std::string& val) → C-API append a single string to a M...
MK_I32 AppendV(MK_FST printfmt,...)
C++: MK_I32 buf.AppendV(MK_FST printfmt, ... ) → C-API append a single string with format and ....
MK_I32 AppendVL(MK_FST printfmt, va_list var_list)
C++: MK_I32 buf.AppendVL(MK_FST printfmt, va_list var_list) → C-API append a single string with...
MkBufferC * AppendC(MK_STRN val)
C++: MkBufferC* buf.AppendC(MK_STRN val) → C-API append a single string to a MkBufferC object …
MkBufferC * ToObject()
C++: MkBufferC* buf.ToObject() → C-API return the native language object from a MkBufferC …
MK_NUM Push(MK_STRN val)
C++: MK_NUM buf.Push(MK_STRN val) → C-API add str to the MkBufferC …
#define MkBufferAppendVL(...)
#define MkBufferAppendC(...)
#define MkBufferAppendStringR(...)
#define MkBufferPush(...)
static MkBufferC * MkBufferC_ObjNew(MK_RT_ARGS MK_BUF hdl)
return MkBufferC from LibMsgqueObject
MK_BUF getBUF() const
return the LibMsgqueObject from current MkBufferC instance
MK_BUFN getBUFN() const
(const) return the LibMsgqueObject from current MkBufferC instance
MkBufferC & operator=(const MkBufferC &buf)
MkBufferC * Prev()
C++: MkBufferC* buf.Prev() → C-API get previous instance from linked-list of MkBufferS type
static MkBufferC * HandleResolve(MK_HDL netHdl)
C++: [static] MkBufferC* MkBufferC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - r...
static MkBufferC * Instances()
C++: [static] MkBufferC* MkBufferC::Instances() → C-API get head-instance from linked-list of Mk...
MkBufferC * Next()
C++: MkBufferC* buf.Next() → C-API get next instance from linked-list of MkBufferS type
static MkBufferC * GetNull()
C++: [static] MkBufferC* MkBufferC::GetNull() → C-API Null-Slot - return a MkBufferC typed NULL ...
#define MkBufferInstances()
static MK_BUF MkBufferGetNull(void)
Null-Slot - return a MkBufferC typed NULL instance …
#define MkBufferHandleResolve(...)
static MK_BUF MkBufferPrev(MK_BUF const buf)
get previous instance from linked-list of MkBufferS type
static MK_BUF MkBufferNext(MK_BUF const buf)
get next instance from linked-list of MkBufferS type
MK_DBL GetDBL() const
C++: doc_mk_cc_BufferGetDBL → C-API get a val_out from a MkBufferC …
MK_I32 GetI32() const
C++: doc_mk_cc_BufferGetI32 → C-API get a val_out from a MkBufferC …
MK_FLT GetFLT() const
C++: doc_mk_cc_BufferGetFLT → C-API get a val_out from a MkBufferC …
MkBufferListC * GetBFL(MkBufferListC *val_inout=NULL) const
C++: MkBufferListC* buf.GetBFL(MkBufferListC* val_inout = NULL) → C-API function to read an MkB...
MK_I64 GetI64() const
C++: doc_mk_cc_BufferGetI64 → C-API get a val_out from a MkBufferC …
MkBufferC * GetBUF()
C++: MkBufferC* buf.GetBUF() → C-API get a val_out from a MkBufferC …
MK_BOL GetBOL() const
C++: doc_mk_cc_BufferGetBOL → C-API get a val_out from a MkBufferC …
MK_I8 GetI8() const
C++: doc_mk_cc_BufferGetI8 → C-API get a val_out from a MkBufferC …
MK_STRN GetSTR() const
C++: doc_mk_cc_BufferGetSTR → C-API get a val_out from a MkBufferC …
std::string GetStringR() const
C++: std::string buf.GetStringR() → C-API get a val_out from a MkBufferC …
MK_BNP GetBIN() const
C++: doc_mk_cc_BufferGetBIN → C-API get a val_out from a MkBufferC …
MK_I16 GetI16() const
C++: doc_mk_cc_BufferGetI16 → C-API get a val_out from a MkBufferC …
#define MkBufferGetStringR(...)
#define MkBufferGetSTR(...)
#define MkBufferGetFLT(...)
#define MkBufferGetI16(...)
#define MkBufferGetBIN(...)
#define MkBufferGetBFL(...)
#define MkBufferGetBUF(...)
#define MkBufferGetBOL(...)
#define MkBufferGetI32(...)
#define MkBufferGetDBL(...)
#define MkBufferGetI64(...)
#define MkBufferGetI8(...)
void LogS(MK_STRN varname="buf", const MkObjectC *fmtobj=NULL, MK_STRN callfunc=__builtin_FUNCTION()) const
C++: buf.LogS(MK_STRN varname = "buf", const MkObjectC* fmtobj = NULL, MK_STRN callfunc = __builtin_...
MK_BOOL IsLocal() const
C++: MK_BOOL buf.IsLocal() → C-API Check if the MkBufferC is local (temporary),...
MK_STRB GetType1() const
C++: MK_STRB buf.GetType1() → C-API return the type from a MkBufferC as single character value ...
MK_STRN GetType3() const
C++: MK_STRN buf.GetType3() → C-API return the type from a MkBufferC as single character string...
MkTypeE GetType2() const
C++: MkTypeE buf.GetType2() → C-API return the MkTypeE from a MkBufferC …
#define MkBufferGetType3(...)
#define MkBufferLogS(...)
#define MkBufferIsLocal(...)
#define MkBufferGetType1(...)
#define MkBufferGetType2(...)
void ResetFull()
C++: buf.ResetFull() → C-API reset a MkBufferC to the length zero and free allocated storage…
MkBufferC * Temp() const
C++: MkBufferC* buf.Temp() → C-API create a temporary copy of the MkBufferC buf …
MkBufferC * Reset()
C++: MkBufferC* buf.Reset() → C-API reset a MkBufferC to the length zero …
MkBufferC * Copy(const MkBufferC *srce) const
C++: MkBufferC* buf.Copy(const MkBufferC* srce) → C-API copy the MkBufferC from srce to dest …
MK_I32 Cmp(const MkBufferC *buf2) const
C++: MK_I32 buf1.Cmp(const MkBufferC* buf2) → C-API compare TWO MkBufferC objects like strcmp d...
void CastTo(MkTypeE typ)
C++: buf.CastTo(MkTypeE typ) → C-API change the type of an MkBufferC to type …
MkBufferC * SizeNew(MK_NUM size)
C++: MkBufferC* buf.SizeNew(MK_NUM size) → C-API alloc min size storage to the buf …
MkBufferC * SizeAdd(MK_NUM size)
C++: MkBufferC* buf.SizeAdd(MK_NUM size) → C-API add size storage to the buf …
#define MkBufferCopy(...)
#define MkBufferTemp(...)
#define MkBufferSizeAdd(...)
#define MkBufferCastTo(...)
#define MkBufferResetFull(...)
#define MkBufferReset(...)
#define MkBufferSizeNew(...)
MkBufferC * SetFLT(MK_FLT val)
C++: doc_mk_cc_BufferSetFLT → C-API Set the MkBufferC to the val …
MkBufferC * SetVL(MK_FST val, va_list var_list)
C++: MkBufferC* buf.SetVL(MK_FST val, va_list var_list) → C-API set the MkBufferC using a va_li...
MkBufferC * SetI64(MK_I64 val)
C++: doc_mk_cc_BufferSetI64 → C-API Set the MkBufferC to the val …
MkBufferC * SetV(MK_FST val,...)
C++: MkBufferC* buf.SetV(MK_FST val, ... ) → C-API set the MkBufferC using a ....
MkBufferC * SetI32(MK_I32 val)
C++: doc_mk_cc_BufferSetI32 → C-API Set the MkBufferC to the val …
MkBufferC * SetDBL(MK_DBL val)
C++: doc_mk_cc_BufferSetDBL → C-API Set the MkBufferC to the val …
MkBufferC * SetBOL(MK_BOL val)
C++: doc_mk_cc_BufferSetBOL → C-API Set the MkBufferC to the val …
MkBufferC * SetI16(MK_I16 val)
C++: doc_mk_cc_BufferSetI16 → C-API Set the MkBufferC to the val …
MkBufferC * SetStringR(const std::string &val)
C++: MkBufferC* buf.SetStringR(const std::string& val) → C-API Set the MkBufferC to the val …
MkBufferC * SetSTR(MK_STRN val)
C++: doc_mk_cc_BufferSetSTR → C-API Set the MkBufferC to the val …
MkBufferC * SetBUF(const MkBufferC *val)
C++: MkBufferC* buf.SetBUF(const MkBufferC* val) → C-API Set the MkBufferC to the val …
MkBufferC * SetBinaryR(MK_BNP val)
C++: MkBufferC* buf.SetBinaryR(MK_BNP val) → C-API Set the MkBufferC to the val …
MkBufferC * SetBIN(MK_BNP val)
C++: doc_mk_cc_BufferSetBIN → C-API Set the MkBufferC to the val …
MkBufferC * SetI8(MK_I8 val)
C++: doc_mk_cc_BufferSetI8 → C-API Set the MkBufferC to the val …
#define MkBufferSetDBL(...)
#define MkBufferSetStringR(...)
#define MkBufferSetBOL(...)
#define MkBufferSetBIN(...)
#define MkBufferSetI64(...)
#define MkBufferSetI16(...)
#define MkBufferSetBUF(...)
#define MkBufferSetFLT(...)
#define MkBufferSetSTR(...)
#define MkBufferSetBinaryR(...)
#define MkBufferSetI8(...)
#define MkBufferSetVL(...)
#define MkBufferSetI32(...)
static MkBufferC * Create256(MK_NUM size=0)
C++: [constructor,static] MkBufferC* MkBufferC::Create256(MK_NUM size = 0) → C-API call the Buff...
static MkBufferC * Create(MK_NUM size=0)
C++: [constructor,static] MkBufferC* MkBufferC::Create(MK_NUM size = 0) → C-API Constructor - cr...
static MkBufferC * CreateI64(MK_I64 val)
C++: doc_mk_cc_BufferCreateI64 → C-API Constructor - create a new MkBufferC with an PRIMITIVE ...
static MkBufferC * CreateBUF(const MkBufferC *val)
C++: [constructor,static] MkBufferC* MkBufferC::CreateBUF(const MkBufferC* val) → C-API Constr...
static MkBufferC * CreateFLT(MK_FLT val)
C++: doc_mk_cc_BufferCreateFLT → C-API Constructor - create a new MkBufferC with an PRIMITIVE ...
static MkBufferC * CreateI32(MK_I32 val)
C++: doc_mk_cc_BufferCreateI32 → C-API Constructor - create a new MkBufferC with an PRIMITIVE ...
static MkBufferC * Create64(MK_NUM size=0)
C++: [constructor,static] MkBufferC* MkBufferC::Create64(MK_NUM size = 0) → C-API call the Buffe...
static MkBufferC * CreateTLS(MK_STRN tlsName, MK_BOOL resetB=true)
C++: [static] MkBufferC* MkBufferC::CreateTLS(MK_STRN tlsName, MK_BOOL resetB = true) → C-API sa...
static MkBufferC * CreateBOL(MK_BOL val)
C++: doc_mk_cc_BufferCreateBOL → C-API Constructor - create a new MkBufferC with an PRIMITIVE ...
static MkBufferC * CreateSTR(MK_STRN val)
C++: doc_mk_cc_BufferCreateSTR → C-API Constructor - create a new MkBufferC with an PRIMITIVE ...
MkBufferC * Dup() const
C++: [constructor] MkBufferC* buf.Dup() → C-API Dup-Constructor - create a new MkBufferC instanc...
static MkBufferC * CreateDBL(MK_DBL val)
C++: doc_mk_cc_BufferCreateDBL → C-API Constructor - create a new MkBufferC with an PRIMITIVE ...
static MkBufferC * Create1024(MK_NUM size=0)
C++: [constructor,static] MkBufferC* MkBufferC::Create1024(MK_NUM size = 0) → C-API call the Buf...
MkBufferC * Merge()
C++: [constructor] MkBufferC* buf.Merge() → C-API Merge-Constructor - create a new MkBufferC as ...
static MkBufferC * CreateBIN(MK_BNP val)
C++: doc_mk_cc_BufferCreateBIN → C-API Constructor - create a new MkBufferC with an PRIMITIVE ...
static MkBufferC * CreateI16(MK_I16 val)
C++: doc_mk_cc_BufferCreateI16 → C-API Constructor - create a new MkBufferC with an PRIMITIVE ...
static MkBufferC * CreateI8(MK_I8 val)
C++: doc_mk_cc_BufferCreateI8 → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYP...
#define MkBufferCreateSTR(...)
#define MkBufferCreateBOL(...)
#define MkBufferCreateTLS(...)
#define MkBufferMerge(...)
#define MkBufferCreate1024(...)
#define MkBufferCreate(...)
#define MkBufferCreateDBL(...)
#define MkBufferCreateI32(...)
#define MkBufferCreateFLT(...)
#define MkBufferCreateI16(...)
#define MkBufferCreateBUF(...)
#define MkBufferCreateBIN(...)
#define MkBufferCreateI64(...)
#define MkBufferCreateI8(...)
#define MkBufferCreate256(...)
#define MkBufferCreate64(...)
static MkBufferListC * MkBufferListC_ObjNew(MK_RT_ARGS MK_BFL hdl)
return MkBufferListC from LibMsgqueObject
MK_BFL getBFL__null_allow() const
return the LibMsgqueObject from current MkBufferListC instance
static MkBinaryR MkBinaryCreate(MK_SIZE size, MK_BINN data)
create a binary from data and size ...
#define MK_UNUSED
mark unnused variables and functions
MkTypeE
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) …
MkErrorE
collection for the different error-codes …
static MkStringR MkStringCreate(MK_NUM len, MK_STRN str)
create a str from ptr and len ...
double MK_DBL
8 byte double data-type
unsigned char MK_BOL
1 byte boolean data-type
signed char MK_I8
1 byte byte data-type
float MK_FLT
4 byte float data-type
signed long long MK_I64
8 byte wide integer data-type
MK_STRB const * MK_FST
const format string pointer data-type
bool MK_BOOL
real bool data-type
int32_t MK_HDL
4 byte int handle data-type
int32_t MK_NUM
array size data-type ('num' items in array …
char MK_STRB
string type data-type
signed short int MK_I16
2 byte short data-type
signed int MK_I32
4 byte integer data-type
const MK_STRB * MK_STRN
constant string pointer data-type
void ErrorCheck(enum MkErrorE err, MK_STRN const caller=__builtin_FUNCTION(), MK_I32 const line=__builtin_LINE()) const
MK_OBJN getOBJN__null_allow() const
(const) return the LibMsgqueObject from current MkObjectC instance
void atomInit(MK_OBJ obj)
struct MkObjectS * MK_OBJ
class-shortcut for struct MkObjectS *, all shortcut using the XX_YYY syntax (only for public API) …
namespace for the CcMkKernel "C++"-API
std::pair< MK_SIZE, MK_BINN > MK_BNP
binary data default format …
MK_BINN data
pointer to the binary data
MK_SIZE size
size of the data pointer
The CLASS used to store a list of MkBufferS items into a flat array…
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …
string data default format …
MK_NUM len
len of the string data
MK_STRN ptr
pointer to the string data