theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_Misc_PY_API

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

+ Collaboration diagram for MkBufferC_Misc_PY_API:

Functions

static OT_ProcRet pymkkernel_MkBufferC_Copy (MkBufferC_ARGS)
  Python: MkBufferC buf.Copy(srce:MkBufferC) C-API
copy the MkBufferC from srce to dest
 
static OT_ProcRet pymkkernel_MkBufferC_Reset (MkBufferC_ARGS)
  Python: MkBufferC buf.Reset() C-API
reset a MkBufferC to the length zero …
 
static OT_ProcRet pymkkernel_MkBufferC_SizeAdd (MkBufferC_ARGS)
  Python: MkBufferC buf.SizeAdd(size:int32) C-API
add size storage to the buf
 
static OT_ProcRet pymkkernel_MkBufferC_SizeNew (MkBufferC_ARGS)
  Python: MkBufferC buf.SizeNew(size:int32) C-API
alloc min size storage to the buf
 
OT_ProcRet pymkkernel_MkBufferC_Temp (MkBufferC_ARGS)
  Python: MkBufferC buf.Temp() C-API
create a temporary copy of the MkBufferC buf …
 
static OT_ProcRet pymkkernel_MkBufferC_CastTo (MkBufferC_ARGS)
  Python: buf.CastTo(typ:MkTypeE) C-API
change the type of an MkBufferC to type
 
static OT_ProcRet pymkkernel_MkBufferC_Cmp (MkBufferC_ARGS)
  Python: int32 buf1.Cmp(buf2:MkBufferC) C-API
compare TWO MkBufferC objects like strcmp do it for strings …
 
static OT_ProcRet pymkkernel_MkBufferC_ResetFull (MkBufferC_ARGS)
  Python: buf.ResetFull() C-API
reset a MkBufferC to the length zero and free allocated storage…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pymkkernel_MkBufferC_ToString (MkBufferC_ARGS)
 

Detailed Description

MkBufferC - various functions to work on buffer-data

Function Documentation

◆ pymkkernel_MkBufferC_CastTo()

static OT_ProcRet pymkkernel_MkBufferC_CastTo ( MkBufferC_ARGS )
static

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

Definition at line 756 of file MkBufferC_py.c.

756 {
759 enum MkTypeE typ = 0;
762 MkErrorC_Check(hdl,MkBufferCastTo (hdl, typ));
764 goto end;
765 error:
767 end:
769}
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#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) …
#define OT_CHECK_ENUM(ename, val)

◆ pymkkernel_MkBufferC_Cmp()

static OT_ProcRet pymkkernel_MkBufferC_Cmp ( MkBufferC_ARGS )
static

Python: int32 buf1.Cmp(buf2:MkBufferC) C-API
compare TWO MkBufferC objects like strcmp do it for strings …

Definition at line 772 of file MkBufferC_py.c.

772 {
775 MK_BUFN buf2 = 0;
778 OT_retObj_SET_I32(MkBufferCmp (hdl, buf2));
779 goto end;
780 error:
782 end:
784}
#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 …

◆ pymkkernel_MkBufferC_Copy()

static OT_ProcRet pymkkernel_MkBufferC_Copy ( MkBufferC_ARGS )
static

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

Definition at line 678 of file MkBufferC_py.c.

678 {
681 MK_BUFN srce = 0;
684 MK_BUF retVal = MkBufferCopy (hdl, srce);
685 OT_retObj_SET_BUF(retVal);
686 goto end;
687 error:
689 end:
691}
#define OT_retObj_SET_BUF(nat)
#define Copy_doc
#define MkBufferCopy(...)

◆ pymkkernel_MkBufferC_Reset()

static OT_ProcRet pymkkernel_MkBufferC_Reset ( MkBufferC_ARGS )
static

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

Definition at line 694 of file MkBufferC_py.c.

694 {
698 MK_BUF retVal = MkBufferReset (hdl);
699 OT_retObj_SET_BUF(retVal);
700 goto end;
701 error:
703 end:
705}
#define OT_SETUP_NOARG(d)
#define Reset_doc
#define MkBufferReset(...)

◆ pymkkernel_MkBufferC_ResetFull()

static OT_ProcRet pymkkernel_MkBufferC_ResetFull ( MkBufferC_ARGS )
static

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

Definition at line 787 of file MkBufferC_py.c.

787 {
791 MkBufferResetFull (hdl);
793 goto end;
794 error:
796 end:
798}
#define ResetFull_doc
#define MkBufferResetFull(...)

◆ pymkkernel_MkBufferC_SizeAdd()

static OT_ProcRet pymkkernel_MkBufferC_SizeAdd ( MkBufferC_ARGS )
static

Python: MkBufferC buf.SizeAdd(size:int32) C-API
add size storage to the buf

Definition at line 708 of file MkBufferC_py.c.

708 {
711 MK_NUM size = 0;
714 MK_BUF retVal = MkBufferSizeAdd (hdl, size);
715 OT_retObj_SET_BUF(retVal);
716 goto end;
717 error:
719 end:
721}
#define OT_CHECK_NI4(val)
#define SizeAdd_doc
#define MkBufferSizeAdd(...)
int32_t MK_NUM
array size data-type ('num' items in array …

◆ pymkkernel_MkBufferC_SizeNew()

static OT_ProcRet pymkkernel_MkBufferC_SizeNew ( MkBufferC_ARGS )
static

Python: MkBufferC buf.SizeNew(size:int32) C-API
alloc min size storage to the buf

Definition at line 724 of file MkBufferC_py.c.

724 {
727 MK_NUM size = 0;
730 MK_BUF retVal = MkBufferSizeNew (hdl, size);
731 OT_retObj_SET_BUF(retVal);
732 goto end;
733 error:
735 end:
737}
#define SizeNew_doc
#define MkBufferSizeNew(...)

◆ pymkkernel_MkBufferC_Temp()

OT_ProcRet pymkkernel_MkBufferC_Temp ( MkBufferC_ARGS )

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

Definition at line 740 of file MkBufferC_py.c.

740 {
744 MK_BUF retVal = MkBufferTemp (hdl);
745 OT_retObj_SET_BUF(retVal);
746 goto end;
747 error:
749 end:
751}
#define Temp_doc
#define MkBufferTemp(...)

◆ pymkkernel_MkBufferC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet pymkkernel_MkBufferC_ToString ( MkBufferC_ARGS )
static

Definition at line 802 of file MkBufferC_py.c.

#define OT_ERROR_LNG_RETURN