theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_Set_CC_API

MkBufferC - various functions to set buffer-dataMore...

+ Collaboration diagram for MkBufferC_Set_CC_API:

Functions

MkBufferCccmkkernel::MkBufferC::SetBIN (MK_BNP val)
  C++: doc_mk_cc_BufferSetBIN C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetBOL (MK_BOL val)
  C++: doc_mk_cc_BufferSetBOL C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetBUF (const MkBufferC *val)
  C++: MkBufferC* buf.SetBUF(const MkBufferC* val) C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetBUF (const MkBufferC &val)
  C++: MkBufferC* buf.SetBUF(const MkBufferC* val) C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetBinaryR (MK_BNP val)
  C++: MkBufferC* buf.SetBinaryR(MK_BNP val) C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetDBL (MK_DBL val)
  C++: doc_mk_cc_BufferSetDBL C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetFLT (MK_FLT val)
  C++: doc_mk_cc_BufferSetFLT C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetI16 (MK_I16 val)
  C++: doc_mk_cc_BufferSetI16 C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetI32 (MK_I32 val)
  C++: doc_mk_cc_BufferSetI32 C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetI64 (MK_I64 val)
  C++: doc_mk_cc_BufferSetI64 C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetI8 (MK_I8 val)
  C++: doc_mk_cc_BufferSetI8 C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetSTR (MK_STRN val)
  C++: doc_mk_cc_BufferSetSTR C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetSTR (const std::string &val)
  C++: doc_mk_cc_BufferSetSTR C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetStringR (const std::string &val)
  C++: MkBufferC* buf.SetStringR(const std::string& val) C-API
Set the MkBufferC to the val
 
MkBufferCccmkkernel::MkBufferC::SetV (MK_FST val,...)
  C++: MkBufferC* buf.SetV(MK_FST val, ... ) C-API
set the MkBufferC using a ... value …
 
MkBufferCccmkkernel::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_list value …
 

Detailed Description

MkBufferC - various functions to set buffer-data

Function Documentation

◆ SetBIN()

MkBufferC * ccmkkernel::MkBufferC::SetBIN ( MK_BNP val)
inline

C++: doc_mk_cc_BufferSetBIN C-API
Set the MkBufferC to the val

Definition at line 475 of file MkBufferC_inline_cc.hh.

475 {
476 MK_UNUSED auto buf = getBUF();
477 const MkBinaryR val_ref = MkBinaryCreate(val.first,val.second);
478 MK_BUF __retVal__L = MkBufferSetBIN(buf, val_ref);
479 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
480 }
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
struct MkBufferS * MK_BUF
class-shortcut for struct MkBufferS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MkBufferSetBIN(...)
static MkBinaryR MkBinaryCreate(MK_SIZE size, MK_BINN data)
create a binary from data and size ...
#define MK_UNUSED
mark unnused variables and functions
#define MK_RT_CALL

◆ SetBinaryR()

MkBufferC * ccmkkernel::MkBufferC::SetBinaryR ( MK_BNP val)
inline

C++: MkBufferC* buf.SetBinaryR(MK_BNP val) C-API
Set the MkBufferC to the val

Definition at line 506 of file MkBufferC_inline_cc.hh.

506 {
507 MK_UNUSED auto buf = getBUF();
508 const MkBinaryR val_ref = MkBinaryCreate(val.first,val.second);
509 MK_BUF __retVal__L = MkBufferSetBinaryR(buf, val_ref);
510 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
511 }
#define MkBufferSetBinaryR(...)

◆ SetBOL()

MkBufferC * ccmkkernel::MkBufferC::SetBOL ( MK_BOL val)
inline

C++: doc_mk_cc_BufferSetBOL C-API
Set the MkBufferC to the val

Definition at line 483 of file MkBufferC_inline_cc.hh.

483 {
484 MK_UNUSED auto buf = getBUF();
485 MK_BUF __retVal__L = MkBufferSetBOL(buf, (MK_BOL)(val?1:0));
486 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
487 }
#define MkBufferSetBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ SetBUF() [1/2]

MkBufferC * ccmkkernel::MkBufferC::SetBUF ( const MkBufferC & val)
inline

C++: MkBufferC* buf.SetBUF(const MkBufferC* val) C-API
Set the MkBufferC to the val

Definition at line 498 of file MkBufferC_inline_cc.hh.

498 {
499 MK_UNUSED auto buf = getBUF();
500 const MK_BUFN val_hdl = MkBufferC::getBUFN(val);
501 MK_BUF __retVal__L = MkBufferSetBUF(buf, val_hdl);
502 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
503 }
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 MkBufferSetBUF(...)

◆ SetBUF() [2/2]

MkBufferC * ccmkkernel::MkBufferC::SetBUF ( const MkBufferC * val)
inline

C++: MkBufferC* buf.SetBUF(const MkBufferC* val) C-API
Set the MkBufferC to the val

Definition at line 490 of file MkBufferC_inline_cc.hh.

490 {
491 MK_UNUSED auto buf = getBUF();
492 MK_BUFN val_hdl = MkBufferC::getBUFN(val);
493 MK_BUF __retVal__L = MkBufferSetBUF(buf, val_hdl);
494 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
495 }

◆ SetDBL()

MkBufferC * ccmkkernel::MkBufferC::SetDBL ( MK_DBL val)
inline

C++: doc_mk_cc_BufferSetDBL C-API
Set the MkBufferC to the val

Definition at line 514 of file MkBufferC_inline_cc.hh.

514 {
515 MK_UNUSED auto buf = getBUF();
516 MK_BUF __retVal__L = MkBufferSetDBL(buf, val);
517 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
518 }
#define MkBufferSetDBL(...)

◆ SetFLT()

MkBufferC * ccmkkernel::MkBufferC::SetFLT ( MK_FLT val)
inline

C++: doc_mk_cc_BufferSetFLT C-API
Set the MkBufferC to the val

Definition at line 521 of file MkBufferC_inline_cc.hh.

521 {
522 MK_UNUSED auto buf = getBUF();
523 MK_BUF __retVal__L = MkBufferSetFLT(buf, val);
524 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
525 }
#define MkBufferSetFLT(...)

◆ SetI16()

MkBufferC * ccmkkernel::MkBufferC::SetI16 ( MK_I16 val)
inline

C++: doc_mk_cc_BufferSetI16 C-API
Set the MkBufferC to the val

Definition at line 528 of file MkBufferC_inline_cc.hh.

528 {
529 MK_UNUSED auto buf = getBUF();
530 MK_BUF __retVal__L = MkBufferSetI16(buf, val);
531 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
532 }
#define MkBufferSetI16(...)

◆ SetI32()

MkBufferC * ccmkkernel::MkBufferC::SetI32 ( MK_I32 val)
inline

C++: doc_mk_cc_BufferSetI32 C-API
Set the MkBufferC to the val

Definition at line 535 of file MkBufferC_inline_cc.hh.

535 {
536 MK_UNUSED auto buf = getBUF();
537 MK_BUF __retVal__L = MkBufferSetI32(buf, val);
538 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
539 }
#define MkBufferSetI32(...)

◆ SetI64()

MkBufferC * ccmkkernel::MkBufferC::SetI64 ( MK_I64 val)
inline

C++: doc_mk_cc_BufferSetI64 C-API
Set the MkBufferC to the val

Definition at line 542 of file MkBufferC_inline_cc.hh.

542 {
543 MK_UNUSED auto buf = getBUF();
544 MK_BUF __retVal__L = MkBufferSetI64(buf, val);
545 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
546 }
#define MkBufferSetI64(...)

◆ SetI8()

MkBufferC * ccmkkernel::MkBufferC::SetI8 ( MK_I8 val)
inline

C++: doc_mk_cc_BufferSetI8 C-API
Set the MkBufferC to the val

Definition at line 549 of file MkBufferC_inline_cc.hh.

549 {
550 MK_UNUSED auto buf = getBUF();
551 MK_BUF __retVal__L = MkBufferSetI8(buf, (MK_I8)(val));
552 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
553 }
#define MkBufferSetI8(...)
signed char MK_I8
1 byte byte data-type

◆ SetSTR() [1/2]

MkBufferC * ccmkkernel::MkBufferC::SetSTR ( const std::string & val)
inline

C++: doc_mk_cc_BufferSetSTR C-API
Set the MkBufferC to the val

Definition at line 563 of file MkBufferC_inline_cc.hh.

563 {
564 MK_UNUSED auto buf = getBUF();
565 const MK_STRN val_hdl = val.c_str();
566 MK_BUF __retVal__L = MkBufferSetSTR(buf, val_hdl);
567 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
568 }
#define MkBufferSetSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ SetSTR() [2/2]

MkBufferC * ccmkkernel::MkBufferC::SetSTR ( MK_STRN val)
inline

C++: doc_mk_cc_BufferSetSTR C-API
Set the MkBufferC to the val

Definition at line 556 of file MkBufferC_inline_cc.hh.

556 {
557 MK_UNUSED auto buf = getBUF();
558 MK_BUF __retVal__L = MkBufferSetSTR(buf, val);
559 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
560 }

◆ SetStringR()

MkBufferC * ccmkkernel::MkBufferC::SetStringR ( const std::string & val)
inline

C++: MkBufferC* buf.SetStringR(const std::string& val) C-API
Set the MkBufferC to the val

Definition at line 571 of file MkBufferC_inline_cc.hh.

571 {
572 MK_UNUSED auto buf = getBUF();
573 const MkStringR val_ref = MkStringCreate((MK_NUM)val.size(),val.c_str());
574 MK_BUF __retVal__L = MkBufferSetStringR(buf, val_ref);
575 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
576 }
#define MkBufferSetStringR(...)
static MkStringR MkStringCreate(MK_NUM len, MK_STRN str)
create a str from ptr and len ...
int32_t MK_NUM
array size data-type ('num' items in array …

◆ SetV()

MkBufferC * ccmkkernel::MkBufferC::SetV ( MK_FST val,
... )
inline

C++: MkBufferC* buf.SetV(MK_FST val, ... ) C-API
set the MkBufferC using a ... value …

Definition at line 579 of file MkBufferC_inline_cc.hh.

579 {
580 MK_UNUSED auto buf = getBUF();
581 va_list ap;
582 va_start (ap, val);
583 MK_BUF __retVal__L = MkBufferSetVL(buf, val, ap);
584 va_end (ap);
585 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
586 }
#define MkBufferSetVL(...)

◆ SetVL()

MkBufferC * ccmkkernel::MkBufferC::SetVL ( MK_FST val,
va_list var_list )
inline

C++: MkBufferC* buf.SetVL(MK_FST val, va_list var_list) C-API
set the MkBufferC using a va_list value …

Definition at line 589 of file MkBufferC_inline_cc.hh.

589 {
590 MK_UNUSED auto buf = getBUF();
591 MK_BUF __retVal__L = MkBufferSetVL(buf, val, var_list);
592 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
593 }