theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_Misc_CC_API

MkBufferC - various functions to work on buffer-dataMore...

+ Collaboration diagram for MkBufferC_Misc_CC_API:

Functions

MkBufferCccmkkernel::MkBufferC::Copy (const MkBufferC *srce) const
  C++: MkBufferC* buf.Copy(const MkBufferC* srce) C-API
copy the MkBufferC from srce to dest
 
MkBufferCccmkkernel::MkBufferC::Copy (const MkBufferC &srce) const
  C++: MkBufferC* buf.Copy(const MkBufferC* srce) C-API
copy the MkBufferC from srce to dest
 
MkBufferCccmkkernel::MkBufferC::Reset ()
  C++: MkBufferC* buf.Reset() C-API
reset a MkBufferC to the length zero …
 
MkBufferCccmkkernel::MkBufferC::SizeAdd (MK_NUM size)
  C++: MkBufferC* buf.SizeAdd(MK_NUM size) C-API
add size storage to the buf
 
MkBufferCccmkkernel::MkBufferC::SizeNew (MK_NUM size)
  C++: MkBufferC* buf.SizeNew(MK_NUM size) C-API
alloc min size storage to the buf
 
MkBufferCccmkkernel::MkBufferC::Temp () const
  C++: MkBufferC* buf.Temp() C-API
create a temporary copy of the MkBufferC buf …
 
void ccmkkernel::MkBufferC::CastTo (MkTypeE typ)
  C++: buf.CastTo(MkTypeE typ) C-API
change the type of an MkBufferC to type
 
MK_I32 ccmkkernel::MkBufferC::Cmp (const MkBufferC *buf2) const
  C++: MK_I32 buf1.Cmp(const MkBufferC* buf2) C-API
compare TWO MkBufferC objects like strcmp do it for strings …
 
MK_I32 ccmkkernel::MkBufferC::Cmp (const MkBufferC &buf2) const
  C++: MK_I32 buf1.Cmp(const MkBufferC* buf2) C-API
compare TWO MkBufferC objects like strcmp do it for strings …
 
void ccmkkernel::MkBufferC::ResetFull ()
  C++: buf.ResetFull() C-API
reset a MkBufferC to the length zero and free allocated storage…
 

Detailed Description

MkBufferC - various functions to work on buffer-data

Function Documentation

◆ CastTo()

void ccmkkernel::MkBufferC::CastTo ( MkTypeE typ)
inline

C++: buf.CastTo(MkTypeE typ) C-API
change the type of an MkBufferC to type

Definition at line 435 of file MkBufferC_inline_cc.hh.

435 {
436 MK_UNUSED auto buf = getBUF();
437 enum MkErrorE errVal = MkBufferCastTo(buf, typ);
438 MkErrorC_Check(buf, errVal);
439 }
#define MkErrorC_Check(errObj, errVal)
MK_BUF getBUF() const
return the LibMsgqueObject from current MkBufferC instance
#define MkBufferCastTo(...)
#define MK_UNUSED
mark unnused variables and functions
MkErrorE
collection for the different error-codes …

◆ Cmp() [1/2]

MK_I32 ccmkkernel::MkBufferC::Cmp ( const MkBufferC & buf2) const
inline

C++: MK_I32 buf1.Cmp(const MkBufferC* buf2) C-API
compare TWO MkBufferC objects like strcmp do it for strings …

Definition at line 450 of file MkBufferC_inline_cc.hh.

450 {
451 MK_UNUSED auto buf1 = getBUFN();
452 const MK_BUFN buf2_hdl = MkBufferC::getBUFN(buf2);
453 MK_I32 __retVal__L = MkBufferCmp(buf1, buf2_hdl);
454 return __retVal__L;
455 }
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 MkBufferCmp(...)
signed int MK_I32
4 byte integer data-type

◆ Cmp() [2/2]

MK_I32 ccmkkernel::MkBufferC::Cmp ( const MkBufferC * buf2) const
inline

C++: MK_I32 buf1.Cmp(const MkBufferC* buf2) C-API
compare TWO MkBufferC objects like strcmp do it for strings …

Definition at line 442 of file MkBufferC_inline_cc.hh.

442 {
443 MK_UNUSED auto buf1 = getBUFN();
444 MK_BUFN buf2_hdl = MkBufferC::getBUFN(buf2);
445 MK_I32 __retVal__L = MkBufferCmp(buf1, buf2_hdl);
446 return __retVal__L;
447 }

◆ Copy() [1/2]

MkBufferC * ccmkkernel::MkBufferC::Copy ( const MkBufferC & srce) const
inline

C++: MkBufferC* buf.Copy(const MkBufferC* srce) C-API
copy the MkBufferC from srce to dest

Definition at line 397 of file MkBufferC_inline_cc.hh.

397 {
398 MK_UNUSED auto buf = getBUF();
399 const MK_BUFN srce_hdl = MkBufferC::getBUFN(srce);
400 MK_BUF __retVal__L = MkBufferCopy(buf, srce_hdl);
401 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
402 }
static MkBufferC * MkBufferC_ObjNew(MK_RT_ARGS MK_BUF hdl)
return MkBufferC from LibMsgqueObject
struct MkBufferS * MK_BUF
class-shortcut for struct MkBufferS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MkBufferCopy(...)
#define MK_RT_CALL

◆ Copy() [2/2]

MkBufferC * ccmkkernel::MkBufferC::Copy ( const MkBufferC * srce) const
inline

C++: MkBufferC* buf.Copy(const MkBufferC* srce) C-API
copy the MkBufferC from srce to dest

Definition at line 389 of file MkBufferC_inline_cc.hh.

389 {
390 MK_UNUSED auto buf = getBUF();
391 MK_BUFN srce_hdl = MkBufferC::getBUFN(srce);
392 MK_BUF __retVal__L = MkBufferCopy(buf, srce_hdl);
393 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
394 }

◆ Reset()

MkBufferC * ccmkkernel::MkBufferC::Reset ( )
inline

C++: MkBufferC* buf.Reset() C-API
reset a MkBufferC to the length zero …

Definition at line 405 of file MkBufferC_inline_cc.hh.

405 {
406 MK_UNUSED auto buf = getBUF();
407 MK_BUF __retVal__L = MkBufferReset(buf);
408 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
409 }
#define MkBufferReset(...)

◆ ResetFull()

void ccmkkernel::MkBufferC::ResetFull ( )
inline

C++: buf.ResetFull() C-API
reset a MkBufferC to the length zero and free allocated storage…

Definition at line 458 of file MkBufferC_inline_cc.hh.

458 {
459 MK_UNUSED auto buf = getBUF();
461 }
#define MkBufferResetFull(...)

◆ SizeAdd()

MkBufferC * ccmkkernel::MkBufferC::SizeAdd ( MK_NUM size)
inline

C++: MkBufferC* buf.SizeAdd(MK_NUM size) C-API
add size storage to the buf

Definition at line 412 of file MkBufferC_inline_cc.hh.

412 {
413 MK_UNUSED auto buf = getBUF();
414 MK_BUF __retVal__L = MkBufferSizeAdd(buf, size);
415 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
416 }
#define MkBufferSizeAdd(...)

◆ SizeNew()

MkBufferC * ccmkkernel::MkBufferC::SizeNew ( MK_NUM size)
inline

C++: MkBufferC* buf.SizeNew(MK_NUM size) C-API
alloc min size storage to the buf

Definition at line 419 of file MkBufferC_inline_cc.hh.

419 {
420 MK_UNUSED auto buf = getBUF();
421 MK_BUF __retVal__L = MkBufferSizeNew(buf, size);
422 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
423 }
#define MkBufferSizeNew(...)

◆ Temp()

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

C++: MkBufferC* buf.Temp() C-API
create a temporary copy of the MkBufferC buf …

Definition at line 426 of file MkBufferC_inline_cc.hh.

426 {
427 MK_UNUSED auto buf = getBUFN();
428 MK_BUF __retVal__L = MkBufferTemp(buf);
429 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
430 }
#define MkBufferTemp(...)