theKernel 10.0
Loading...
Searching...
No Matches
MkBufferStreamC_Write_CC_API

MkBufferStreamC - various functions to write into a MkBufferStreamSMore...

+ Collaboration diagram for MkBufferStreamC_Write_CC_API:

Functions

void ccmkkernel::MkBufferStreamC::WriteBFL (const MkBufferListC *bfl)
  C++: bus.WriteBFL(const MkBufferListC* bfl) C-API
write a MkBufferListC into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteBFL (const MkBufferListC &bfl)
  C++: bus.WriteBFL(const MkBufferListC* bfl) C-API
write a MkBufferListC into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteBIN (MK_BNP val)
  C++: doc_mk_cc_BufferStreamWriteBIN C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteBOL (MK_BOL val)
  C++: doc_mk_cc_BufferStreamWriteBOL C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteBUF (const MkBufferC *val)
  C++: bus.WriteBUF(const MkBufferC* val) C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteBUF (const MkBufferC &val)
  C++: bus.WriteBUF(const MkBufferC* val) C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteBUS_FLAT (const MkBufferStreamC *add)
  C++: bus.WriteBUS_FLAT(const MkBufferStreamC* add) C-API
write a MkBufferStreamC into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteBUS_FLAT (const MkBufferStreamC &add)
  C++: bus.WriteBUS_FLAT(const MkBufferStreamC* add) C-API
write a MkBufferStreamC into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteDBL (MK_DBL val)
  C++: doc_mk_cc_BufferStreamWriteDBL C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteFLT (MK_FLT val)
  C++: doc_mk_cc_BufferStreamWriteFLT C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteHDL (MK_I32 val)
  C++: bus.WriteHDL(MK_I32 val) C-API
write the handle into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteI32 (MK_I32 val)
  C++: doc_mk_cc_BufferStreamWriteI32 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteI64 (MK_I64 val)
  C++: doc_mk_cc_BufferStreamWriteI64 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteI8 (MK_I8 val)
  C++: doc_mk_cc_BufferStreamWriteI8 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteLONG (MK_LONG val)
  C++: bus.WriteLONG(MK_LONG val) C-API
write the long native object into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteL_END ()
  C++: bus.WriteL_END() C-API
END write a list-item-type into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteL_FLAT (MkBufferListC *bfl)
  C++: bus.WriteL_FLAT(MkBufferListC* bfl) C-API
write a MkBufferListC FLAT into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteL_FLAT (const MkBufferListC &bfl)
  C++: bus.WriteL_FLAT(MkBufferListC* bfl) C-API
write a MkBufferListC FLAT into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteL_START ()
  C++: bus.WriteL_START() C-API
START write a list-item-type into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteSTR (MK_STRN val, MK_NUM len=-1)
  C++: doc_mk_cc_BufferStreamWriteSTR C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteSTR (const std::string &val, MK_NUM len=-1)
  C++: doc_mk_cc_BufferStreamWriteSTR C-API
write a PRIMITIVE TYPE into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteV (MK_STRN fmt,...)
  C++: bus.WriteV(MK_STRN fmt, ... ) C-API
write format-string into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteV (const std::string &fmt,...)
  C++: bus.WriteV(MK_STRN fmt, ... ) C-API
write format-string into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteVL (MK_STRN fmt, va_list ap)
  C++: bus.WriteVL(MK_STRN fmt, va_list ap) C-API
write format-string into the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::WriteVL (const std::string &fmt, va_list ap)
  C++: bus.WriteVL(MK_STRN fmt, va_list ap) C-API
write format-string into the MkBufferStreamC
 

Detailed Description

MkBufferStreamC - various functions to write into a MkBufferStreamS

Write is done at the position of MkBufferStreamS::storage->cur. After write the cur is incemented with write-sizeof characters.

Write is done at the position of MkBufferStreamS::storage->cur. After write the cur is incemented with write-sizeof characters.

Function Documentation

◆ WriteBFL() [1/2]

void ccmkkernel::MkBufferStreamC::WriteBFL ( const MkBufferListC & bfl)
inline

C++: bus.WriteBFL(const MkBufferListC* bfl) C-API
write a MkBufferListC into the MkBufferStreamC

Definition at line 480 of file MkBufferStreamC_inline_cc.hh.

480 {
481 MK_UNUSED auto bus = getBUS();
482 const MK_BFLN bfl_hdl = MkBufferListC::getBFLN(bfl);
483 enum MkErrorE errVal = MkBufferStreamWriteBFL(bus, bfl_hdl);
484 MkErrorC_Check(bus, errVal);
485 }
#define MkErrorC_Check(errObj, errVal)
MK_BFLN getBFLN() const
(const) return the LibMsgqueObject from current MkBufferListC instance
const struct MkBufferListS * MK_BFLN
class-shortcut for const struct MkBufferListS *, all const shortcut using the XX_YYYC syntax (only fo...
MK_BUS getBUS() const
return the LibMsgqueObject from current MkBufferStreamC instance
#define MkBufferStreamWriteBFL(...)
#define MK_UNUSED
mark unnused variables and functions
MkErrorE
collection for the different error-codes …

◆ WriteBFL() [2/2]

void ccmkkernel::MkBufferStreamC::WriteBFL ( const MkBufferListC * bfl)
inline

C++: bus.WriteBFL(const MkBufferListC* bfl) C-API
write a MkBufferListC into the MkBufferStreamC

Definition at line 472 of file MkBufferStreamC_inline_cc.hh.

472 {
473 MK_UNUSED auto bus = getBUS();
474 MK_BFLN bfl_hdl = MkBufferListC::getBFLN(bfl);
475 enum MkErrorE errVal = MkBufferStreamWriteBFL(bus, bfl_hdl);
476 MkErrorC_Check(bus, errVal);
477 }

◆ WriteBIN()

void ccmkkernel::MkBufferStreamC::WriteBIN ( MK_BNP val)
inline

C++: doc_mk_cc_BufferStreamWriteBIN C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 488 of file MkBufferStreamC_inline_cc.hh.

488 {
489 MK_UNUSED auto bus = getBUS();
490 const MkBinaryR val_ref = MkBinaryCreate(val.first,val.second);
491 enum MkErrorE errVal = MkBufferStreamWriteBIN(bus, val_ref);
492 MkErrorC_Check(bus, errVal);
493 }
#define MkBufferStreamWriteBIN(...)
static MkBinaryR MkBinaryCreate(MK_SIZE size, MK_BINN data)
create a binary from data and size ...

◆ WriteBOL()

void ccmkkernel::MkBufferStreamC::WriteBOL ( MK_BOL val)
inline

C++: doc_mk_cc_BufferStreamWriteBOL C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 496 of file MkBufferStreamC_inline_cc.hh.

496 {
497 MK_UNUSED auto bus = getBUS();
498 enum MkErrorE errVal = MkBufferStreamWriteBOL(bus, (MK_BOL)(val?1:0));
499 MkErrorC_Check(bus, errVal);
500 }
#define MkBufferStreamWriteBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ WriteBUF() [1/2]

void ccmkkernel::MkBufferStreamC::WriteBUF ( const MkBufferC & val)
inline

C++: bus.WriteBUF(const MkBufferC* val) C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 511 of file MkBufferStreamC_inline_cc.hh.

511 {
512 MK_UNUSED auto bus = getBUS();
513 const MK_BUFN val_hdl = MkBufferC::getBUFN(val);
514 enum MkErrorE errVal = MkBufferStreamWriteBUF(bus, val_hdl);
515 MkErrorC_Check(bus, errVal);
516 }
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 MkBufferStreamWriteBUF(...)

◆ WriteBUF() [2/2]

void ccmkkernel::MkBufferStreamC::WriteBUF ( const MkBufferC * val)
inline

C++: bus.WriteBUF(const MkBufferC* val) C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 503 of file MkBufferStreamC_inline_cc.hh.

503 {
504 MK_UNUSED auto bus = getBUS();
505 MK_BUFN val_hdl = MkBufferC::getBUFN(val);
506 enum MkErrorE errVal = MkBufferStreamWriteBUF(bus, val_hdl);
507 MkErrorC_Check(bus, errVal);
508 }

◆ WriteBUS_FLAT() [1/2]

void ccmkkernel::MkBufferStreamC::WriteBUS_FLAT ( const MkBufferStreamC & add)
inline

C++: bus.WriteBUS_FLAT(const MkBufferStreamC* add) C-API
write a MkBufferStreamC into the MkBufferStreamC

Definition at line 527 of file MkBufferStreamC_inline_cc.hh.

527 {
528 MK_UNUSED auto bus = getBUS();
529 const MK_BUSN add_hdl = MkBufferStreamC::getBUSN(add);
530 enum MkErrorE errVal = MkBufferStreamWriteBUS_FLAT(bus, add_hdl);
531 MkErrorC_Check(bus, errVal);
532 }
MK_BUSN getBUSN() const
(const) return the LibMsgqueObject from current MkBufferStreamC instance
const struct MkBufferStreamS * MK_BUSN
class-shortcut for const struct MkBufferStreamS *, all const shortcut using the XX_YYYC syntax (only ...
#define MkBufferStreamWriteBUS_FLAT(...)

◆ WriteBUS_FLAT() [2/2]

void ccmkkernel::MkBufferStreamC::WriteBUS_FLAT ( const MkBufferStreamC * add)
inline

C++: bus.WriteBUS_FLAT(const MkBufferStreamC* add) C-API
write a MkBufferStreamC into the MkBufferStreamC

Definition at line 519 of file MkBufferStreamC_inline_cc.hh.

519 {
520 MK_UNUSED auto bus = getBUS();
521 MK_BUSN add_hdl = MkBufferStreamC::getBUSN(add);
522 enum MkErrorE errVal = MkBufferStreamWriteBUS_FLAT(bus, add_hdl);
523 MkErrorC_Check(bus, errVal);
524 }

◆ WriteDBL()

void ccmkkernel::MkBufferStreamC::WriteDBL ( MK_DBL val)
inline

C++: doc_mk_cc_BufferStreamWriteDBL C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 535 of file MkBufferStreamC_inline_cc.hh.

535 {
536 MK_UNUSED auto bus = getBUS();
537 enum MkErrorE errVal = MkBufferStreamWriteDBL(bus, val);
538 MkErrorC_Check(bus, errVal);
539 }
#define MkBufferStreamWriteDBL(...)

◆ WriteFLT()

void ccmkkernel::MkBufferStreamC::WriteFLT ( MK_FLT val)
inline

C++: doc_mk_cc_BufferStreamWriteFLT C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 542 of file MkBufferStreamC_inline_cc.hh.

542 {
543 MK_UNUSED auto bus = getBUS();
544 enum MkErrorE errVal = MkBufferStreamWriteFLT(bus, val);
545 MkErrorC_Check(bus, errVal);
546 }
#define MkBufferStreamWriteFLT(...)

◆ WriteHDL()

void ccmkkernel::MkBufferStreamC::WriteHDL ( MK_I32 val)
inline

C++: bus.WriteHDL(MK_I32 val) C-API
write the handle into the MkBufferStreamC

Definition at line 549 of file MkBufferStreamC_inline_cc.hh.

549 {
550 MK_UNUSED auto bus = getBUS();
551 enum MkErrorE errVal = MkBufferStreamWriteHDL(bus, val);
552 MkErrorC_Check(bus, errVal);
553 }
#define MkBufferStreamWriteHDL(...)

◆ WriteI32()

void ccmkkernel::MkBufferStreamC::WriteI32 ( MK_I32 val)
inline

C++: doc_mk_cc_BufferStreamWriteI32 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 556 of file MkBufferStreamC_inline_cc.hh.

556 {
557 MK_UNUSED auto bus = getBUS();
558 enum MkErrorE errVal = MkBufferStreamWriteI32(bus, val);
559 MkErrorC_Check(bus, errVal);
560 }
#define MkBufferStreamWriteI32(...)

◆ WriteI64()

void ccmkkernel::MkBufferStreamC::WriteI64 ( MK_I64 val)
inline

C++: doc_mk_cc_BufferStreamWriteI64 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 563 of file MkBufferStreamC_inline_cc.hh.

563 {
564 MK_UNUSED auto bus = getBUS();
565 enum MkErrorE errVal = MkBufferStreamWriteI64(bus, val);
566 MkErrorC_Check(bus, errVal);
567 }
#define MkBufferStreamWriteI64(...)

◆ WriteI8()

void ccmkkernel::MkBufferStreamC::WriteI8 ( MK_I8 val)
inline

C++: doc_mk_cc_BufferStreamWriteI8 C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 570 of file MkBufferStreamC_inline_cc.hh.

570 {
571 MK_UNUSED auto bus = getBUS();
572 enum MkErrorE errVal = MkBufferStreamWriteI8(bus, (MK_I8)(val));
573 MkErrorC_Check(bus, errVal);
574 }
#define MkBufferStreamWriteI8(...)
signed char MK_I8
1 byte byte data-type

◆ WriteL_END()

void ccmkkernel::MkBufferStreamC::WriteL_END ( )
inline

C++: bus.WriteL_END() C-API
END write a list-item-type into the MkBufferStreamC

Definition at line 584 of file MkBufferStreamC_inline_cc.hh.

584 {
585 MK_UNUSED auto bus = getBUS();
586 enum MkErrorE errVal = MkBufferStreamWriteL_END(bus);
587 MkErrorC_Check(bus, errVal);
588 }
#define MkBufferStreamWriteL_END(...)

◆ WriteL_FLAT() [1/2]

void ccmkkernel::MkBufferStreamC::WriteL_FLAT ( const MkBufferListC & bfl)
inline

C++: bus.WriteL_FLAT(MkBufferListC* bfl) C-API
write a MkBufferListC FLAT into the MkBufferStreamC

Definition at line 599 of file MkBufferStreamC_inline_cc.hh.

599 {
600 MK_UNUSED auto bus = getBUS();
601 const MK_BFL bfl_hdl = MkBufferListC::getBFL(bfl);
602 enum MkErrorE errVal = MkBufferStreamWriteL_FLAT(bus, bfl_hdl);
603 MkErrorC_Check(bus, errVal);
604 }
MK_BFL getBFL() const
return the LibMsgqueObject from current MkBufferListC instance
struct MkBufferListS * MK_BFL
class-shortcut for struct MkBufferListS *, all shortcut using the XX_YYY syntax (only for public API)...
#define MkBufferStreamWriteL_FLAT(...)

◆ WriteL_FLAT() [2/2]

void ccmkkernel::MkBufferStreamC::WriteL_FLAT ( MkBufferListC * bfl)
inline

C++: bus.WriteL_FLAT(MkBufferListC* bfl) C-API
write a MkBufferListC FLAT into the MkBufferStreamC

Definition at line 591 of file MkBufferStreamC_inline_cc.hh.

591 {
592 MK_UNUSED auto bus = getBUS();
593 MK_BFL bfl_hdl = MkBufferListC::getBFL(bfl);
594 enum MkErrorE errVal = MkBufferStreamWriteL_FLAT(bus, bfl_hdl);
595 MkErrorC_Check(bus, errVal);
596 }

◆ WriteL_START()

void ccmkkernel::MkBufferStreamC::WriteL_START ( )
inline

C++: bus.WriteL_START() C-API
START write a list-item-type into the MkBufferStreamC

Definition at line 607 of file MkBufferStreamC_inline_cc.hh.

607 {
608 MK_UNUSED auto bus = getBUS();
609 enum MkErrorE errVal = MkBufferStreamWriteL_START(bus);
610 MkErrorC_Check(bus, errVal);
611 }
#define MkBufferStreamWriteL_START(...)

◆ WriteLONG()

void ccmkkernel::MkBufferStreamC::WriteLONG ( MK_LONG val)
inline

C++: bus.WriteLONG(MK_LONG val) C-API
write the long native object into the MkBufferStreamC

Definition at line 577 of file MkBufferStreamC_inline_cc.hh.

577 {
578 MK_UNUSED auto bus = getBUS();
579 enum MkErrorE errVal = MkBufferStreamWriteLONG(bus, val);
580 MkErrorC_Check(bus, errVal);
581 }
#define MkBufferStreamWriteLONG(...)

◆ WriteSTR() [1/2]

void ccmkkernel::MkBufferStreamC::WriteSTR ( const std::string & val,
MK_NUM len = -1 )
inline

C++: doc_mk_cc_BufferStreamWriteSTR C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 621 of file MkBufferStreamC_inline_cc.hh.

621 {
622 MK_UNUSED auto bus = getBUS();
623 const MK_STRN val_hdl = val.c_str();
624 enum MkErrorE errVal = MkBufferStreamWriteSTR(bus, val_hdl, len);
625 MkErrorC_Check(bus, errVal);
626 }
#define MkBufferStreamWriteSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ WriteSTR() [2/2]

void ccmkkernel::MkBufferStreamC::WriteSTR ( MK_STRN val,
MK_NUM len = -1 )
inline

C++: doc_mk_cc_BufferStreamWriteSTR C-API
write a PRIMITIVE TYPE into the MkBufferStreamC

Definition at line 614 of file MkBufferStreamC_inline_cc.hh.

614 {
615 MK_UNUSED auto bus = getBUS();
616 enum MkErrorE errVal = MkBufferStreamWriteSTR(bus, val, len);
617 MkErrorC_Check(bus, errVal);
618 }

◆ WriteV() [1/2]

void ccmkkernel::MkBufferStreamC::WriteV ( const std::string & fmt,
... )
inline

C++: bus.WriteV(MK_STRN fmt, ... ) C-API
write format-string into the MkBufferStreamC

Definition at line 639 of file MkBufferStreamC_inline_cc.hh.

639 {
640 MK_UNUSED auto bus = getBUS();
641 const MK_STRN fmt_hdl = fmt.c_str();
642 va_list ap;
643 va_start (ap, fmt);
644 enum MkErrorE errVal = MkBufferStreamWriteVL(bus, fmt_hdl, ap);
645 va_end (ap);
646 MkErrorC_Check(bus, errVal);
647 }
#define MkBufferStreamWriteVL(...)

◆ WriteV() [2/2]

void ccmkkernel::MkBufferStreamC::WriteV ( MK_STRN fmt,
... )
inline

C++: bus.WriteV(MK_STRN fmt, ... ) C-API
write format-string into the MkBufferStreamC

Definition at line 629 of file MkBufferStreamC_inline_cc.hh.

629 {
630 MK_UNUSED auto bus = getBUS();
631 va_list ap;
632 va_start (ap, fmt);
633 enum MkErrorE errVal = MkBufferStreamWriteVL(bus, fmt, ap);
634 va_end (ap);
635 MkErrorC_Check(bus, errVal);
636 }

◆ WriteVL() [1/2]

void ccmkkernel::MkBufferStreamC::WriteVL ( const std::string & fmt,
va_list ap )
inline

C++: bus.WriteVL(MK_STRN fmt, va_list ap) C-API
write format-string into the MkBufferStreamC

Definition at line 657 of file MkBufferStreamC_inline_cc.hh.

657 {
658 MK_UNUSED auto bus = getBUS();
659 const MK_STRN fmt_hdl = fmt.c_str();
660 enum MkErrorE errVal = MkBufferStreamWriteVL(bus, fmt_hdl, ap);
661 MkErrorC_Check(bus, errVal);
662 }

◆ WriteVL() [2/2]

void ccmkkernel::MkBufferStreamC::WriteVL ( MK_STRN fmt,
va_list ap )
inline

C++: bus.WriteVL(MK_STRN fmt, va_list ap) C-API
write format-string into the MkBufferStreamC

Definition at line 650 of file MkBufferStreamC_inline_cc.hh.

650 {
651 MK_UNUSED auto bus = getBUS();
652 enum MkErrorE errVal = MkBufferStreamWriteVL(bus, fmt, ap);
653 MkErrorC_Check(bus, errVal);
654 }