theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_Misc_TCL_API

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

+ Collaboration diagram for MkBufferC_Misc_TCL_API:

Functions

static OT_ProcRet tclmkkernel_MkBufferC_Copy (MkBufferC_ARGS)
  Tcl: MkBufferC [$buf Copy srce:MkBufferC] C-API
copy the MkBufferC from srce to dest
 
static OT_ProcRet tclmkkernel_MkBufferC_Reset (MkBufferC_ARGS)
  Tcl: MkBufferC [$buf Reset] C-API
reset a MkBufferC to the length zero …
 
static OT_ProcRet tclmkkernel_MkBufferC_SizeAdd (MkBufferC_ARGS)
  Tcl: MkBufferC [$buf SizeAdd size:int32] C-API
add size storage to the buf
 
static OT_ProcRet tclmkkernel_MkBufferC_SizeNew (MkBufferC_ARGS)
  Tcl: MkBufferC [$buf SizeNew size:int32] C-API
alloc min size storage to the buf
 
OT_ProcRet tclmkkernel_MkBufferC_Temp (MkBufferC_ARGS)
  Tcl: MkBufferC [$buf Temp] C-API
create a temporary copy of the MkBufferC buf …
 
static OT_ProcRet tclmkkernel_MkBufferC_CastTo (MkBufferC_ARGS)
  Tcl: $buf CastTo typ:MkTypeE C-API
change the type of an MkBufferC to type
 
static OT_ProcRet tclmkkernel_MkBufferC_Cmp (MkBufferC_ARGS)
  Tcl: int32 [$buf1 Cmp buf2:MkBufferC] C-API
compare TWO MkBufferC objects like strcmp do it for strings …
 
static OT_ProcRet tclmkkernel_MkBufferC_ResetFull (MkBufferC_ARGS)
  Tcl: $buf ResetFull C-API
reset a MkBufferC to the length zero and free allocated storage…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmkkernel_MkBufferC_ToString (MkBufferC_ARGS)
 

Detailed Description

MkBufferC - various functions to work on buffer-data

Function Documentation

◆ tclmkkernel_MkBufferC_CastTo()

static OT_ProcRet tclmkkernel_MkBufferC_CastTo ( MkBufferC_ARGS )
static

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

Definition at line 769 of file MkBufferC_tcl.c.

769 {
772 enum MkTypeE typ = 0;
775 MkErrorC_Check(hdl,MkBufferCastTo (hdl, typ));
777 goto end;
778 error:
780 end:
782}
#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) …

◆ tclmkkernel_MkBufferC_Cmp()

static OT_ProcRet tclmkkernel_MkBufferC_Cmp ( MkBufferC_ARGS )
static

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

Definition at line 785 of file MkBufferC_tcl.c.

785 {
788 MK_BUFN buf2 = 0;
791 OT_retObj_SET_I32(MkBufferCmp (hdl, buf2));
792 goto end;
793 error:
795 end:
797}
#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 …

◆ tclmkkernel_MkBufferC_Copy()

static OT_ProcRet tclmkkernel_MkBufferC_Copy ( MkBufferC_ARGS )
static

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

Definition at line 691 of file MkBufferC_tcl.c.

691 {
694 MK_BUFN srce = 0;
697 MK_BUF retVal = MkBufferCopy (hdl, srce);
698 OT_retObj_SET_BUF(retVal);
699 goto end;
700 error:
702 end:
704}
#define OT_retObj_SET_BUF(nat)
#define Copy_doc
#define MkBufferCopy(...)

◆ tclmkkernel_MkBufferC_Reset()

static OT_ProcRet tclmkkernel_MkBufferC_Reset ( MkBufferC_ARGS )
static

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

Definition at line 707 of file MkBufferC_tcl.c.

707 {
711 MK_BUF retVal = MkBufferReset (hdl);
712 OT_retObj_SET_BUF(retVal);
713 goto end;
714 error:
716 end:
718}
#define OT_SETUP_NOARG(d)
#define Reset_doc
#define MkBufferReset(...)

◆ tclmkkernel_MkBufferC_ResetFull()

static OT_ProcRet tclmkkernel_MkBufferC_ResetFull ( MkBufferC_ARGS )
static

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

Definition at line 800 of file MkBufferC_tcl.c.

800 {
804 MkBufferResetFull (hdl);
806 goto end;
807 error:
809 end:
811}
#define ResetFull_doc
#define MkBufferResetFull(...)

◆ tclmkkernel_MkBufferC_SizeAdd()

static OT_ProcRet tclmkkernel_MkBufferC_SizeAdd ( MkBufferC_ARGS )
static

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

Definition at line 721 of file MkBufferC_tcl.c.

721 {
724 MK_NUM size = 0;
727 MK_BUF retVal = MkBufferSizeAdd (hdl, size);
728 OT_retObj_SET_BUF(retVal);
729 goto end;
730 error:
732 end:
734}
#define OT_CHECK_NI4(val)
#define SizeAdd_doc
#define MkBufferSizeAdd(...)
int32_t MK_NUM
array size data-type ('num' items in array …

◆ tclmkkernel_MkBufferC_SizeNew()

static OT_ProcRet tclmkkernel_MkBufferC_SizeNew ( MkBufferC_ARGS )
static

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

Definition at line 737 of file MkBufferC_tcl.c.

737 {
740 MK_NUM size = 0;
743 MK_BUF retVal = MkBufferSizeNew (hdl, size);
744 OT_retObj_SET_BUF(retVal);
745 goto end;
746 error:
748 end:
750}
#define SizeNew_doc
#define MkBufferSizeNew(...)

◆ tclmkkernel_MkBufferC_Temp()

OT_ProcRet tclmkkernel_MkBufferC_Temp ( MkBufferC_ARGS )

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

Definition at line 753 of file MkBufferC_tcl.c.

753 {
757 MK_BUF retVal = MkBufferTemp (hdl);
758 OT_retObj_SET_BUF(retVal);
759 goto end;
760 error:
762 end:
764}
#define Temp_doc
#define MkBufferTemp(...)

◆ tclmkkernel_MkBufferC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmkkernel_MkBufferC_ToString ( MkBufferC_ARGS )
static

Definition at line 815 of file MkBufferC_tcl.c.

#define OT_ERROR_LNG_RETURN