theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_TOR_CC_API

MkBufferC - various functions to create, initialize and destroy a MkBufferCMore...

+ Collaboration diagram for MkBufferC_TOR_CC_API:

Functions

MkBufferCccmkkernel::MkBufferC::Merge ()
  C++: [constructor] MkBufferC* buf.Merge() C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …
 
MkBufferCccmkkernel::MkBufferC::Dup () const
  C++: [constructor] MkBufferC* buf.Dup() C-API
Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance
 
static MkBufferCccmkkernel::MkBufferC::Create (MK_NUM size=0)
  C++: [constructor,static] MkBufferC* MkBufferC::Create(MK_NUM size = 0) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
 ccmkkernel::MkBufferC::MkBufferC (MK_NUM size=0)
  C++: [constructor,static] MkBufferC* MkBufferC::Create(MK_NUM size = 0) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static MkBufferCccmkkernel::MkBufferC::Create1024 (MK_NUM size=0)
  C++: [constructor,static] MkBufferC* MkBufferC::Create1024(MK_NUM size = 0) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …
 
static MkBufferCccmkkernel::MkBufferC::Create256 (MK_NUM size=0)
  C++: [constructor,static] MkBufferC* MkBufferC::Create256(MK_NUM size = 0) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …
 
static MkBufferCccmkkernel::MkBufferC::Create64 (MK_NUM size=0)
  C++: [constructor,static] MkBufferC* MkBufferC::Create64(MK_NUM size = 0) C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …
 
static MkBufferCccmkkernel::MkBufferC::CreateBIN (MK_BNP val)
  C++: doc_mk_cc_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateBOL (MK_BOL val)
  C++: doc_mk_cc_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateBUF (const MkBufferC *val)
  C++: [constructor,static] MkBufferC* MkBufferC::CreateBUF(const MkBufferC* val) C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateBUF (const MkBufferC &val)
  C++: [constructor,static] MkBufferC* MkBufferC::CreateBUF(const MkBufferC* val) C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateDBL (MK_DBL val)
  C++: doc_mk_cc_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateFLT (MK_FLT val)
  C++: doc_mk_cc_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateI16 (MK_I16 val)
  C++: doc_mk_cc_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateI32 (MK_I32 val)
  C++: doc_mk_cc_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateI64 (MK_I64 val)
  C++: doc_mk_cc_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateI8 (MK_I8 val)
  C++: doc_mk_cc_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateSTR (MK_STRN val)
  C++: doc_mk_cc_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateSTR (const std::string &val)
  C++: doc_mk_cc_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferCccmkkernel::MkBufferC::CreateTLS (MK_STRN tlsName, MK_BOOL resetB=true)
  C++: [static] MkBufferC* MkBufferC::CreateTLS(MK_STRN tlsName, MK_BOOL resetB = true) C-API
same as BufferCreate but require no cleanup
 
static MkBufferCccmkkernel::MkBufferC::CreateTLS (const std::string &tlsName, MK_BOOL resetB=true)
  C++: [static] MkBufferC* MkBufferC::CreateTLS(MK_STRN tlsName, MK_BOOL resetB = true) C-API
same as BufferCreate but require no cleanup
 

Detailed Description

MkBufferC - various functions to create, initialize and destroy a MkBufferC

Function Documentation

◆ Create()

MkBufferC * ccmkkernel::MkBufferC::Create ( MK_NUM size = 0)
inlinestatic

C++: [constructor,static] MkBufferC* MkBufferC::Create(MK_NUM size = 0) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …

Definition at line 639 of file MkBufferC_inline_cc.hh.

639 {
641 MK_BUF __retVal__L = MkBufferCreate(NULL, size);
642 if (__retVal__L == NULL) {
643 throw MkInitError("MkBufferC::Create");
644 }
645 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
646 }
struct MkBufferS * MK_BUF
class-shortcut for struct MkBufferS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MkBufferCreate(...)
#define MK_RT_CALL
#define MkRtSetup_NULL

◆ Create1024()

MkBufferC * ccmkkernel::MkBufferC::Create1024 ( MK_NUM size = 0)
inlinestatic

C++: [constructor,static] MkBufferC* MkBufferC::Create1024(MK_NUM size = 0) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …

Definition at line 649 of file MkBufferC_inline_cc.hh.

649 {
651 MK_BUF __retVal__L = MkBufferCreate1024(size);
652 if (__retVal__L == NULL) {
653 throw MkInitError("MkBufferC::Create1024");
654 }
655 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
656 }
#define MkBufferCreate1024(...)

◆ Create256()

MkBufferC * ccmkkernel::MkBufferC::Create256 ( MK_NUM size = 0)
inlinestatic

C++: [constructor,static] MkBufferC* MkBufferC::Create256(MK_NUM size = 0) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …

Definition at line 659 of file MkBufferC_inline_cc.hh.

659 {
661 MK_BUF __retVal__L = MkBufferCreate256(size);
662 if (__retVal__L == NULL) {
663 throw MkInitError("MkBufferC::Create256");
664 }
665 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
666 }
#define MkBufferCreate256(...)

◆ Create64()

MkBufferC * ccmkkernel::MkBufferC::Create64 ( MK_NUM size = 0)
inlinestatic

C++: [constructor,static] MkBufferC* MkBufferC::Create64(MK_NUM size = 0) C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …

Definition at line 669 of file MkBufferC_inline_cc.hh.

669 {
671 MK_BUF __retVal__L = MkBufferCreate64(size);
672 if (__retVal__L == NULL) {
673 throw MkInitError("MkBufferC::Create64");
674 }
675 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
676 }
#define MkBufferCreate64(...)

◆ CreateBIN()

MkBufferC * ccmkkernel::MkBufferC::CreateBIN ( MK_BNP val)
inlinestatic

C++: doc_mk_cc_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 679 of file MkBufferC_inline_cc.hh.

679 {
681 const MkBinaryR val_ref = MkBinaryCreate(val.first,val.second);
682 MK_BUF __retVal__L = MkBufferCreateBIN(val_ref);
683 if (__retVal__L == NULL) {
684 throw MkInitError("MkBufferC::CreateBIN");
685 }
686 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
687 }
#define MkBufferCreateBIN(...)
static MkBinaryR MkBinaryCreate(MK_SIZE size, MK_BINN data)
create a binary from data and size ...

◆ CreateBOL()

MkBufferC * ccmkkernel::MkBufferC::CreateBOL ( MK_BOL val)
inlinestatic

C++: doc_mk_cc_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 690 of file MkBufferC_inline_cc.hh.

690 {
692 MK_BUF __retVal__L = MkBufferCreateBOL((MK_BOL)(val?1:0));
693 if (__retVal__L == NULL) {
694 throw MkInitError("MkBufferC::CreateBOL");
695 }
696 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
697 }
#define MkBufferCreateBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ CreateBUF() [1/2]

MkBufferC * ccmkkernel::MkBufferC::CreateBUF ( const MkBufferC & val)
inlinestatic

C++: [constructor,static] MkBufferC* MkBufferC::CreateBUF(const MkBufferC* val) C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 711 of file MkBufferC_inline_cc.hh.

711 {
713 const MK_BUFN val_hdl = MkBufferC::getBUFN(val);
714 MK_BUF __retVal__L = MkBufferCreateBUF(val_hdl);
715 if (__retVal__L == NULL) {
716 throw MkInitError("MkBufferC::CreateBUF");
717 }
718 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
719 }
MK_BUFN getBUFN() const
(const) return the LibMsgqueObject from current MkBufferC instance
const struct MkBufferS * MK_BUFN
class-shortcut for const struct MkBufferS *, all const shortcut using the XX_YYYC syntax (only for pu...
#define MkBufferCreateBUF(...)

◆ CreateBUF() [2/2]

MkBufferC * ccmkkernel::MkBufferC::CreateBUF ( const MkBufferC * val)
inlinestatic

C++: [constructor,static] MkBufferC* MkBufferC::CreateBUF(const MkBufferC* val) C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 700 of file MkBufferC_inline_cc.hh.

700 {
702 MK_BUFN val_hdl = MkBufferC::getBUFN(val);
703 MK_BUF __retVal__L = MkBufferCreateBUF(val_hdl);
704 if (__retVal__L == NULL) {
705 throw MkInitError("MkBufferC::CreateBUF");
706 }
707 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
708 }

◆ CreateDBL()

MkBufferC * ccmkkernel::MkBufferC::CreateDBL ( MK_DBL val)
inlinestatic

C++: doc_mk_cc_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 722 of file MkBufferC_inline_cc.hh.

722 {
724 MK_BUF __retVal__L = MkBufferCreateDBL(val);
725 if (__retVal__L == NULL) {
726 throw MkInitError("MkBufferC::CreateDBL");
727 }
728 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
729 }
#define MkBufferCreateDBL(...)

◆ CreateFLT()

MkBufferC * ccmkkernel::MkBufferC::CreateFLT ( MK_FLT val)
inlinestatic

C++: doc_mk_cc_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 732 of file MkBufferC_inline_cc.hh.

732 {
734 MK_BUF __retVal__L = MkBufferCreateFLT(val);
735 if (__retVal__L == NULL) {
736 throw MkInitError("MkBufferC::CreateFLT");
737 }
738 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
739 }
#define MkBufferCreateFLT(...)

◆ CreateI16()

MkBufferC * ccmkkernel::MkBufferC::CreateI16 ( MK_I16 val)
inlinestatic

C++: doc_mk_cc_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 742 of file MkBufferC_inline_cc.hh.

742 {
744 MK_BUF __retVal__L = MkBufferCreateI16(val);
745 if (__retVal__L == NULL) {
746 throw MkInitError("MkBufferC::CreateI16");
747 }
748 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
749 }
#define MkBufferCreateI16(...)

◆ CreateI32()

MkBufferC * ccmkkernel::MkBufferC::CreateI32 ( MK_I32 val)
inlinestatic

C++: doc_mk_cc_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 752 of file MkBufferC_inline_cc.hh.

752 {
754 MK_BUF __retVal__L = MkBufferCreateI32(val);
755 if (__retVal__L == NULL) {
756 throw MkInitError("MkBufferC::CreateI32");
757 }
758 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
759 }
#define MkBufferCreateI32(...)

◆ CreateI64()

MkBufferC * ccmkkernel::MkBufferC::CreateI64 ( MK_I64 val)
inlinestatic

C++: doc_mk_cc_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 762 of file MkBufferC_inline_cc.hh.

762 {
764 MK_BUF __retVal__L = MkBufferCreateI64(val);
765 if (__retVal__L == NULL) {
766 throw MkInitError("MkBufferC::CreateI64");
767 }
768 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
769 }
#define MkBufferCreateI64(...)

◆ CreateI8()

MkBufferC * ccmkkernel::MkBufferC::CreateI8 ( MK_I8 val)
inlinestatic

C++: doc_mk_cc_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 772 of file MkBufferC_inline_cc.hh.

772 {
774 MK_BUF __retVal__L = MkBufferCreateI8((MK_I8)(val));
775 if (__retVal__L == NULL) {
776 throw MkInitError("MkBufferC::CreateI8");
777 }
778 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
779 }
#define MkBufferCreateI8(...)
signed char MK_I8
1 byte byte data-type

◆ CreateSTR() [1/2]

MkBufferC * ccmkkernel::MkBufferC::CreateSTR ( const std::string & val)
inlinestatic

C++: doc_mk_cc_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 792 of file MkBufferC_inline_cc.hh.

792 {
794 const MK_STRN val_hdl = val.c_str();
795 MK_BUF __retVal__L = MkBufferCreateSTR(val_hdl);
796 if (__retVal__L == NULL) {
797 throw MkInitError("MkBufferC::CreateSTR");
798 }
799 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
800 }
#define MkBufferCreateSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ CreateSTR() [2/2]

MkBufferC * ccmkkernel::MkBufferC::CreateSTR ( MK_STRN val)
inlinestatic

C++: doc_mk_cc_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 782 of file MkBufferC_inline_cc.hh.

782 {
784 MK_BUF __retVal__L = MkBufferCreateSTR(val);
785 if (__retVal__L == NULL) {
786 throw MkInitError("MkBufferC::CreateSTR");
787 }
788 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
789 }

◆ CreateTLS() [1/2]

MkBufferC * ccmkkernel::MkBufferC::CreateTLS ( const std::string & tlsName,
MK_BOOL resetB = true )
inlinestatic

C++: [static] MkBufferC* MkBufferC::CreateTLS(MK_STRN tlsName, MK_BOOL resetB = true) C-API
same as BufferCreate but require no cleanup

Definition at line 812 of file MkBufferC_inline_cc.hh.

812 {
814 const MK_STRN tlsName_hdl = tlsName.c_str();
815 MK_BUF __retVal__L = MkBufferCreateTLS(tlsName_hdl, resetB);
816 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
817 }
static MkBufferC * MkBufferC_ObjNew(MK_RT_ARGS MK_BUF hdl)
return MkBufferC from LibMsgqueObject
#define MkBufferCreateTLS(...)

◆ CreateTLS() [2/2]

MkBufferC * ccmkkernel::MkBufferC::CreateTLS ( MK_STRN tlsName,
MK_BOOL resetB = true )
inlinestatic

C++: [static] MkBufferC* MkBufferC::CreateTLS(MK_STRN tlsName, MK_BOOL resetB = true) C-API
same as BufferCreate but require no cleanup

Definition at line 805 of file MkBufferC_inline_cc.hh.

805 {
807 MK_BUF __retVal__L = MkBufferCreateTLS(tlsName, resetB);
808 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
809 }

◆ Dup()

MkBufferC * ccmkkernel::MkBufferC::Dup ( ) const
inline

C++: [constructor] MkBufferC* buf.Dup() C-API
Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance

Definition at line 617 of file MkBufferC_inline_cc.hh.

617 {
618 MK_UNUSED auto buf = getBUFN();
619 MK_BUF __retVal__L = MkBufferDup(buf);
620 if (__retVal__L == NULL) {
621 throw MkInitError("MkBufferC::Dup");
622 }
623 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
624 }
#define MkBufferDup(...)
#define MK_UNUSED
mark unnused variables and functions

◆ Merge()

MkBufferC * ccmkkernel::MkBufferC::Merge ( )
inline

C++: [constructor] MkBufferC* buf.Merge() C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …

Definition at line 605 of file MkBufferC_inline_cc.hh.

605 {
606 MK_UNUSED auto buf = getBUF();
607 MK_BUF __retVal__L = MkBufferMerge(buf);
608 if (__retVal__L == NULL) {
609 throw MkInitError("MkBufferC::Merge");
610 }
611 return MkBufferC::MkBufferC_ObjCreate(MK_RT_CALL __retVal__L);
612 }
MK_BUF getBUF() const
return the LibMsgqueObject from current MkBufferC instance
#define MkBufferMerge(...)

◆ MkBufferC()

ccmkkernel::MkBufferC::MkBufferC ( MK_NUM size = 0)
inline

C++: [constructor,static] MkBufferC* MkBufferC::Create(MK_NUM size = 0) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …

Definition at line 482 of file MkBufferC_cc.hh.

482: MkObjectC(CTOR(size)) {};