theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_Misc_ATL_API

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

+ Collaboration diagram for MkBufferC_Misc_ATL_API:

Functions

static OT_ProcRet atlmkkernel_MkBufferC_Copy (MkBufferC_ARGS)
  Atl: MkBufferC [MkBufferC::Copy $buf srce:MkBufferC] C-API
copy the MkBufferC from srce to dest
 
static OT_ProcRet atlmkkernel_MkBufferC_Reset (MkBufferC_ARGS)
  Atl: MkBufferC [MkBufferC::Reset $buf] C-API
reset a MkBufferC to the length zero …
 
static OT_ProcRet atlmkkernel_MkBufferC_SizeAdd (MkBufferC_ARGS)
  Atl: MkBufferC [MkBufferC::SizeAdd $buf size:int32] C-API
add size storage to the buf
 
static OT_ProcRet atlmkkernel_MkBufferC_SizeNew (MkBufferC_ARGS)
  Atl: MkBufferC [MkBufferC::SizeNew $buf size:int32] C-API
alloc min size storage to the buf
 
OT_ProcRet atlmkkernel_MkBufferC_Temp (MkBufferC_ARGS)
  Atl: MkBufferC [MkBufferC::Temp $buf] C-API
create a temporary copy of the MkBufferC buf …
 
static OT_ProcRet atlmkkernel_MkBufferC_CastTo (MkBufferC_ARGS)
  Atl: MkBufferC::CastTo $buf typ:MkTypeE C-API
change the type of an MkBufferC to type
 
static OT_ProcRet atlmkkernel_MkBufferC_Cmp (MkBufferC_ARGS)
  Atl: int32 [MkBufferC::Cmp $buf1 buf2:MkBufferC] C-API
compare TWO MkBufferC objects like strcmp do it for strings …
 
static OT_ProcRet atlmkkernel_MkBufferC_ResetFull (MkBufferC_ARGS)
  Atl: MkBufferC::ResetFull $buf C-API
reset a MkBufferC to the length zero and free allocated storage…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmkkernel_MkBufferC_ToString (MkBufferC_ARGS)
 

Detailed Description

MkBufferC - various functions to work on buffer-data

Function Documentation

◆ atlmkkernel_MkBufferC_CastTo()

static OT_ProcRet atlmkkernel_MkBufferC_CastTo ( MkBufferC_ARGS )
static

Atl: MkBufferC::CastTo $buf typ:MkTypeE C-API
change the type of an MkBufferC to type

Definition at line 748 of file MkBufferC_atl.c.

748 {
751 enum MkTypeE typ = 0;
754 MkErrorC_Check(hdl,MkBufferCastTo (hdl, typ));
756 goto end;
757 error:
759 end:
761}
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_CHECK_ENUM(ename, val)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_SETUP_hdl
#define CastTo_doc
#define MkBufferCastTo(...)
MkTypeE
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) …

◆ atlmkkernel_MkBufferC_Cmp()

static OT_ProcRet atlmkkernel_MkBufferC_Cmp ( MkBufferC_ARGS )
static

Atl: int32 [MkBufferC::Cmp $buf1 buf2:MkBufferC] C-API
compare TWO MkBufferC objects like strcmp do it for strings …

Definition at line 764 of file MkBufferC_atl.c.

764 {
767 MK_BUFN buf2 = 0;
770 OT_retObj_SET_I32(MkBufferCmp (hdl, buf2));
771 goto end;
772 error:
774 end:
776}
#define OT_retObj_SET_I32(nat)
#define Cmp_doc
#define MkBufferCmp(...)
#define MK_NULL_NO
flag, not allow NULL
#define OT_CHECK_BUFN(val, nullB)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

◆ atlmkkernel_MkBufferC_Copy()

static OT_ProcRet atlmkkernel_MkBufferC_Copy ( MkBufferC_ARGS )
static

Atl: MkBufferC [MkBufferC::Copy $buf srce:MkBufferC] C-API
copy the MkBufferC from srce to dest

Definition at line 670 of file MkBufferC_atl.c.

670 {
673 MK_BUFN srce = 0;
676 MK_BUF retVal = MkBufferCopy (hdl, srce);
677 OT_retObj_SET_BUF(retVal);
678 goto end;
679 error:
681 end:
683}
#define OT_retObj_SET_BUF(nat)
#define Copy_doc
#define MkBufferCopy(...)

◆ atlmkkernel_MkBufferC_Reset()

static OT_ProcRet atlmkkernel_MkBufferC_Reset ( MkBufferC_ARGS )
static

Atl: MkBufferC [MkBufferC::Reset $buf] C-API
reset a MkBufferC to the length zero …

Definition at line 686 of file MkBufferC_atl.c.

686 {
690 MK_BUF retVal = MkBufferReset (hdl);
691 OT_retObj_SET_BUF(retVal);
692 goto end;
693 error:
695 end:
697}
#define OT_SETUP_NOARG(d)
#define Reset_doc
#define MkBufferReset(...)

◆ atlmkkernel_MkBufferC_ResetFull()

static OT_ProcRet atlmkkernel_MkBufferC_ResetFull ( MkBufferC_ARGS )
static

Atl: MkBufferC::ResetFull $buf C-API
reset a MkBufferC to the length zero and free allocated storage…

Definition at line 779 of file MkBufferC_atl.c.

779 {
783 MkBufferResetFull (hdl);
785 goto end;
786 error:
788 end:
790}
#define ResetFull_doc
#define MkBufferResetFull(...)

◆ atlmkkernel_MkBufferC_SizeAdd()

static OT_ProcRet atlmkkernel_MkBufferC_SizeAdd ( MkBufferC_ARGS )
static

Atl: MkBufferC [MkBufferC::SizeAdd $buf size:int32] C-API
add size storage to the buf

Definition at line 700 of file MkBufferC_atl.c.

700 {
703 MK_NUM size = 0;
706 MK_BUF retVal = MkBufferSizeAdd (hdl, size);
707 OT_retObj_SET_BUF(retVal);
708 goto end;
709 error:
711 end:
713}
#define OT_CHECK_NI4(val)
#define SizeAdd_doc
#define MkBufferSizeAdd(...)
int32_t MK_NUM
array size data-type ('num' items in array …

◆ atlmkkernel_MkBufferC_SizeNew()

static OT_ProcRet atlmkkernel_MkBufferC_SizeNew ( MkBufferC_ARGS )
static

Atl: MkBufferC [MkBufferC::SizeNew $buf size:int32] C-API
alloc min size storage to the buf

Definition at line 716 of file MkBufferC_atl.c.

716 {
719 MK_NUM size = 0;
722 MK_BUF retVal = MkBufferSizeNew (hdl, size);
723 OT_retObj_SET_BUF(retVal);
724 goto end;
725 error:
727 end:
729}
#define SizeNew_doc
#define MkBufferSizeNew(...)

◆ atlmkkernel_MkBufferC_Temp()

OT_ProcRet atlmkkernel_MkBufferC_Temp ( MkBufferC_ARGS )

Atl: MkBufferC [MkBufferC::Temp $buf] C-API
create a temporary copy of the MkBufferC buf …

Definition at line 732 of file MkBufferC_atl.c.

732 {
736 MK_BUF retVal = MkBufferTemp (hdl);
737 OT_retObj_SET_BUF(retVal);
738 goto end;
739 error:
741 end:
743}
#define Temp_doc
#define MkBufferTemp(...)

◆ atlmkkernel_MkBufferC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmkkernel_MkBufferC_ToString ( MkBufferC_ARGS )
static

Definition at line 794 of file MkBufferC_atl.c.

#define OT_ERROR_LNG_RETURN