theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Misc_TCL_API

MkBufferListC - various functions to work on a MkBufferListSMore...

+ Collaboration diagram for MkBufferListC_Misc_TCL_API:

Functions

OT_ProcRet tclmkkernel_MkBufferListC_ToList (MkBufferListC_ARGS)
  Tcl: [list...] [$bfl ToList] C-API
get a target-language list representation of the bfl
 
static OT_ProcRet tclmkkernel_MkBufferListC_FileGlob (OtClass_ARGS)
  Tcl: (constructor,static) MkBufferListC [MkBufferListC FileGlob pattern_match:string] C-API
create a new MkBufferListC using the result from a filesystem glob operation …
 
static OT_ProcRet tclmkkernel_MkBufferListC_PositionMerge (MkBufferListC_ARGS)
  Tcl: MkBufferListC [$bfl PositionMerge source:MkBufferListC position:int32] C-API
merge a MkBufferListS list into an MkBufferListS object on position
 
static OT_ProcRet tclmkkernel_MkBufferListC_Reset (MkBufferListC_ARGS)
  Tcl: MkBufferListC [$bfl Reset] C-API
reset a MkBufferListC object …
 
static OT_ProcRet tclmkkernel_MkBufferListC_Sort (MkBufferListC_ARGS)
  Tcl: MkBufferListC [$bfl Sort] C-API
sort a MkBufferListC
 
static OT_ProcRet tclmkkernel_MkBufferListC_ToBuffer (MkBufferListC_ARGS)
  Tcl: MkBufferC [$bfl ToBuffer] C-API
Export a bfl into an MkBufferC using an MkBufferStreamC
 
static OT_ProcRet tclmkkernel_MkBufferListC_Cmp (MkBufferListC_ARGS)
  Tcl: int32 [$bfl Cmp bfl2:MkBufferListC] C-API
compare two buffer-list
 
static OT_ProcRet tclmkkernel_MkBufferListC_Copy (MkBufferListC_ARGS)
  Tcl: $bfl Copy src:MkBufferListC C-API
copy all internal data from src to tgt
 
static OT_ProcRet tclmkkernel_MkBufferListC_Move (MkBufferListC_ARGS)
  Tcl: $to Move from:MkBufferListC C-API
move all internal data from from to the end of to
 
static OT_ProcRet tclmkkernel_MkBufferListC_Reserve (MkBufferListC_ARGS)
  Tcl: $bfl Reserve num:int32 C-API
reserve num items in a MkBufferListC object …
 
static OT_ProcRet tclmkkernel_MkBufferListC_SearchC (MkBufferListC_ARGS)
  Tcl: int32 [$bfl SearchC str:string ?len:int32=-1? ?startindex:int32=0?] C-API
search MK_STR item from a MkBufferListS object starting at startindex
 
static OT_ProcRet tclmkkernel_MkBufferListC_Size (MkBufferListC_ARGS)
  Tcl: int32 [$bfl Size] C-API
get the number-of-items in the bfl
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmkkernel_MkBufferListC_ToString (MkBufferListC_ARGS)
 

Detailed Description

MkBufferListC - various functions to work on a MkBufferListS

Function Documentation

◆ tclmkkernel_MkBufferListC_Cmp()

static OT_ProcRet tclmkkernel_MkBufferListC_Cmp ( MkBufferListC_ARGS )
static

Tcl: int32 [$bfl Cmp bfl2:MkBufferListC] C-API
compare two buffer-list

Definition at line 1118 of file MkBufferListC_tcl.c.

1118 {
1121 MkBufferListCreateTLS_T(bfl2,10);
1125 goto end;
1126 error:
1128 end:
1130}
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_I32(nat)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define OT_SETUP_hdl
#define Cmp_doc
#define MkBufferListCmp(...)
#define MkBufferListCreateTLS_T(name, num)
create a MkBufferListC instance as thread-local-storage …
#define MK_NULL_NO
flag, not allow NULL
#define OT_CHECK_BFLN(val, nullB)

◆ tclmkkernel_MkBufferListC_Copy()

static OT_ProcRet tclmkkernel_MkBufferListC_Copy ( MkBufferListC_ARGS )
static

Tcl: $bfl Copy src:MkBufferListC C-API
copy all internal data from src to tgt

Definition at line 1133 of file MkBufferListC_tcl.c.

1133 {
1139 MkBufferListCopy (hdl, src);
1141 goto end;
1142 error:
1144 end:
1146}
#define OT_retObj_SET_None
#define Copy_doc
#define MkBufferListCopy(...)

◆ tclmkkernel_MkBufferListC_FileGlob()

static OT_ProcRet tclmkkernel_MkBufferListC_FileGlob ( OtClass_ARGS )
static

Tcl: (constructor,static) MkBufferListC [MkBufferListC FileGlob pattern_match:string] C-API
create a new MkBufferListC using the result from a filesystem glob operation …

Definition at line 1034 of file MkBufferListC_tcl.c.

1034 {
1037 MK_STRN pattern_match = 0;
1038 OT_CHECK_REQUIRED(OT_CHECK_STRN (pattern_match))
1040 MK_BFL retVal = MkBufferListFileGlob (pattern_match);
1041 if (retVal == NULL) {
1042 OT_ERROR_CONSTRUCTOR(MkBufferListC);
1043 goto error;
1044 }
1045 OT_retObj_SET_BFL(retVal);
1046 goto end;
1047 error:
1049 end:
1051}
#define OT_ERROR_CONSTRUCTOR(class)
#define OT_retObj_SET_BFL(nat)
#define OT_CHECK_STRN(val)
#define OT_SETUP_hdl_static_constr
#define FileGlob_doc
#define MkBufferListFileGlob(...)
const MK_STRB * MK_STRN
constant string pointer data-type
The CLASS used to store a list of MkBufferS items into a flat array…

◆ tclmkkernel_MkBufferListC_Move()

static OT_ProcRet tclmkkernel_MkBufferListC_Move ( MkBufferListC_ARGS )
static

Tcl: $to Move from:MkBufferListC C-API
move all internal data from from to the end of to

Definition at line 1149 of file MkBufferListC_tcl.c.

1149 {
1152 MkBufferListCreateTLS_T(from,10);
1155 MkBufferListMove (hdl, from);
1157 goto end;
1158 error:
1160 end:
1162}
#define Move_doc
#define MkBufferListMove(...)
#define OT_CHECK_BFL(val, nullB)

◆ tclmkkernel_MkBufferListC_PositionMerge()

static OT_ProcRet tclmkkernel_MkBufferListC_PositionMerge ( MkBufferListC_ARGS )
static

Tcl: MkBufferListC [$bfl PositionMerge source:MkBufferListC position:int32] C-API
merge a MkBufferListS list into an MkBufferListS object on position

Definition at line 1056 of file MkBufferListC_tcl.c.

1056 {
1059 MkBufferListCreateTLS_T(source,10);
1061 MK_NUM position = 0;
1064 MK_BFL retVal = MkBufferListPositionMerge (hdl, source, position);
1065 OT_retObj_SET_BFL(retVal);
1066 goto end;
1067 error:
1069 end:
1071}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define PositionMerge_doc
#define MkBufferListPositionMerge(...)
int32_t MK_NUM
array size data-type ('num' items in array …

◆ tclmkkernel_MkBufferListC_Reserve()

static OT_ProcRet tclmkkernel_MkBufferListC_Reserve ( MkBufferListC_ARGS )
static

Tcl: $bfl Reserve num:int32 C-API
reserve num items in a MkBufferListC object …

Definition at line 1165 of file MkBufferListC_tcl.c.

1165 {
1168 MK_NUM num = 0;
1171 MkBufferListReserve (hdl, num);
1173 goto end;
1174 error:
1176 end:
1178}
#define Reserve_doc
#define MkBufferListReserve(...)

◆ tclmkkernel_MkBufferListC_Reset()

static OT_ProcRet tclmkkernel_MkBufferListC_Reset ( MkBufferListC_ARGS )
static

Tcl: MkBufferListC [$bfl Reset] C-API
reset a MkBufferListC object …

Definition at line 1074 of file MkBufferListC_tcl.c.

1074 {
1078 MK_BFL retVal = MkBufferListReset (hdl);
1079 OT_retObj_SET_BFL(retVal);
1080 goto end;
1081 error:
1083 end:
1085}
#define OT_SETUP_NOARG(d)
#define Reset_doc
#define MkBufferListReset(...)

◆ tclmkkernel_MkBufferListC_SearchC()

static OT_ProcRet tclmkkernel_MkBufferListC_SearchC ( MkBufferListC_ARGS )
static

Tcl: int32 [$bfl SearchC str:string ?len:int32=-1? ?startindex:int32=0?] C-API
search MK_STR item from a MkBufferListS object starting at startindex

Definition at line 1181 of file MkBufferListC_tcl.c.

1181 {
1184 MK_STRN str = 0;
1186 MK_NUM len = -1;
1188 MK_NUM startindex = 0;
1189 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (startindex))
1191 OT_retObj_SET_I32(MkBufferListSearchC (hdl, str, len, startindex));
1192 goto end;
1193 error:
1195 end:
1197}
#define OT_CHECK_OPTIONAL(val)
#define str(s)
#define SearchC_doc
#define MkBufferListSearchC(...)

◆ tclmkkernel_MkBufferListC_Size()

static OT_ProcRet tclmkkernel_MkBufferListC_Size ( MkBufferListC_ARGS )
static

Tcl: int32 [$bfl Size] C-API
get the number-of-items in the bfl

Definition at line 1200 of file MkBufferListC_tcl.c.

1200 {
1205 goto end;
1206 error:
1208 end:
1210}
#define Size_doc
#define MkBufferListSizeI(bfl)

◆ tclmkkernel_MkBufferListC_Sort()

static OT_ProcRet tclmkkernel_MkBufferListC_Sort ( MkBufferListC_ARGS )
static

Tcl: MkBufferListC [$bfl Sort] C-API
sort a MkBufferListC

Definition at line 1088 of file MkBufferListC_tcl.c.

1088 {
1092 MK_BFL retVal = MkBufferListSort (hdl);
1093 OT_retObj_SET_BFL(retVal);
1094 goto end;
1095 error:
1097 end:
1099}
#define Sort_doc
#define MkBufferListSort(...)

◆ tclmkkernel_MkBufferListC_ToBuffer()

static OT_ProcRet tclmkkernel_MkBufferListC_ToBuffer ( MkBufferListC_ARGS )
static

Tcl: MkBufferC [$bfl ToBuffer] C-API
Export a bfl into an MkBufferC using an MkBufferStreamC

Definition at line 1102 of file MkBufferListC_tcl.c.

1102 {
1106 MK_BUF retVal = MkBufferListToBuffer (hdl);
1107 OT_retObj_SET_BUF(retVal);
1108 goto end;
1109 error:
1111 end:
1113}
#define OT_retObj_SET_BUF(nat)
#define ToBuffer_doc
#define MkBufferListToBuffer(...)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

◆ tclmkkernel_MkBufferListC_ToList()

OT_ProcRet tclmkkernel_MkBufferListC_ToList ( MkBufferListC_ARGS )

Tcl: [list...] [$bfl ToList] C-API
get a target-language list representation of the bfl

◆ tclmkkernel_MkBufferListC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmkkernel_MkBufferListC_ToString ( MkBufferListC_ARGS )
static

Definition at line 1217 of file MkBufferListC_tcl.c.

#define OT_ERROR_LNG_RETURN