theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Misc_PY_API

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

+ Collaboration diagram for MkBufferListC_Misc_PY_API:

Functions

static OT_ProcRet pymkkernel_MkBufferListC_FileGlob (OtClass_ARGS)
  Python: [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 pymkkernel_MkBufferListC_PositionMerge (MkBufferListC_ARGS)
  Python: MkBufferListC bfl.PositionMerge(source:MkBufferListC, position:int32) C-API
merge a MkBufferListS list into an MkBufferListS object on position
 
static OT_ProcRet pymkkernel_MkBufferListC_Reset (MkBufferListC_ARGS)
  Python: MkBufferListC bfl.Reset() C-API
reset a MkBufferListC object …
 
static OT_ProcRet pymkkernel_MkBufferListC_Sort (MkBufferListC_ARGS)
  Python: MkBufferListC bfl.Sort() C-API
sort a MkBufferListC
 
static OT_ProcRet pymkkernel_MkBufferListC_ToBuffer (MkBufferListC_ARGS)
  Python: MkBufferC bfl.ToBuffer() C-API
Export a bfl into an MkBufferC using an MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferListC_Cmp (MkBufferListC_ARGS)
  Python: int32 bfl.Cmp(bfl2:MkBufferListC) C-API
compare two buffer-list
 
static OT_ProcRet pymkkernel_MkBufferListC_Copy (MkBufferListC_ARGS)
  Python: bfl.Copy(src:MkBufferListC) C-API
copy all internal data from src to tgt
 
static OT_ProcRet pymkkernel_MkBufferListC_Move (MkBufferListC_ARGS)
  Python: to.Move(from:MkBufferListC) C-API
move all internal data from from to the end of to
 
static OT_ProcRet pymkkernel_MkBufferListC_Reserve (MkBufferListC_ARGS)
  Python: bfl.Reserve(num:int32) C-API
reserve num items in a MkBufferListC object …
 
static OT_ProcRet pymkkernel_MkBufferListC_SearchC (MkBufferListC_ARGS)
  Python: 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 pymkkernel_MkBufferListC_Size (MkBufferListC_ARGS)
  Python: int32 bfl.Size() C-API
get the number-of-items in the bfl
 
OT_ProcRet pymkkernel_MkBufferListC_ToList (MkBufferListC_ARGS)
  Python: [list...] bfl.ToList() C-API
get a target-language list representation of the bfl
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pymkkernel_MkBufferListC_ToString (MkBufferListC_ARGS)
 

Detailed Description

MkBufferListC - various functions to work on a MkBufferListS

Function Documentation

◆ pymkkernel_MkBufferListC_Cmp()

static OT_ProcRet pymkkernel_MkBufferListC_Cmp ( MkBufferListC_ARGS )
static

Python: int32 bfl.Cmp(bfl2:MkBufferListC) C-API
compare two buffer-list

Definition at line 1096 of file MkBufferListC_py.c.

1096 {
1099 MkBufferListCreateTLS_T(bfl2,10);
1103 goto end;
1104 error:
1106 end:
1108}
#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)

◆ pymkkernel_MkBufferListC_Copy()

static OT_ProcRet pymkkernel_MkBufferListC_Copy ( MkBufferListC_ARGS )
static

Python: bfl.Copy(src:MkBufferListC) C-API
copy all internal data from src to tgt

Definition at line 1111 of file MkBufferListC_py.c.

1111 {
1117 MkBufferListCopy (hdl, src);
1119 goto end;
1120 error:
1122 end:
1124}
#define OT_retObj_SET_None
#define Copy_doc
#define MkBufferListCopy(...)

◆ pymkkernel_MkBufferListC_FileGlob()

static OT_ProcRet pymkkernel_MkBufferListC_FileGlob ( OtClass_ARGS )
static

Python: [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 1012 of file MkBufferListC_py.c.

1012 {
1015 MK_STRN pattern_match = 0;
1016 OT_CHECK_REQUIRED(OT_CHECK_STRN (pattern_match))
1018 MK_BFL retVal = MkBufferListFileGlob (pattern_match);
1019 if (retVal == NULL) {
1020 OT_ERROR_CONSTRUCTOR(MkBufferListC);
1021 goto error;
1022 }
1023 OT_retObj_SET_BFL(retVal);
1024 goto end;
1025 error:
1027 end:
1029}
#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…

◆ pymkkernel_MkBufferListC_Move()

static OT_ProcRet pymkkernel_MkBufferListC_Move ( MkBufferListC_ARGS )
static

Python: to.Move(from:MkBufferListC) C-API
move all internal data from from to the end of to

Definition at line 1127 of file MkBufferListC_py.c.

1127 {
1130 MkBufferListCreateTLS_T(from,10);
1133 MkBufferListMove (hdl, from);
1135 goto end;
1136 error:
1138 end:
1140}
#define Move_doc
#define MkBufferListMove(...)
#define OT_CHECK_BFL(val, nullB)

◆ pymkkernel_MkBufferListC_PositionMerge()

static OT_ProcRet pymkkernel_MkBufferListC_PositionMerge ( MkBufferListC_ARGS )
static

Python: MkBufferListC bfl.PositionMerge(source:MkBufferListC, position:int32) C-API
merge a MkBufferListS list into an MkBufferListS object on position

Definition at line 1034 of file MkBufferListC_py.c.

1034 {
1037 MkBufferListCreateTLS_T(source,10);
1039 MK_NUM position = 0;
1042 MK_BFL retVal = MkBufferListPositionMerge (hdl, source, position);
1043 OT_retObj_SET_BFL(retVal);
1044 goto end;
1045 error:
1047 end:
1049}
#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 …

◆ pymkkernel_MkBufferListC_Reserve()

static OT_ProcRet pymkkernel_MkBufferListC_Reserve ( MkBufferListC_ARGS )
static

Python: bfl.Reserve(num:int32) C-API
reserve num items in a MkBufferListC object …

Definition at line 1143 of file MkBufferListC_py.c.

1143 {
1146 MK_NUM num = 0;
1149 MkBufferListReserve (hdl, num);
1151 goto end;
1152 error:
1154 end:
1156}
#define Reserve_doc
#define MkBufferListReserve(...)

◆ pymkkernel_MkBufferListC_Reset()

static OT_ProcRet pymkkernel_MkBufferListC_Reset ( MkBufferListC_ARGS )
static

Python: MkBufferListC bfl.Reset() C-API
reset a MkBufferListC object …

Definition at line 1052 of file MkBufferListC_py.c.

1052 {
1056 MK_BFL retVal = MkBufferListReset (hdl);
1057 OT_retObj_SET_BFL(retVal);
1058 goto end;
1059 error:
1061 end:
1063}
#define OT_SETUP_NOARG(d)
#define Reset_doc
#define MkBufferListReset(...)

◆ pymkkernel_MkBufferListC_SearchC()

static OT_ProcRet pymkkernel_MkBufferListC_SearchC ( MkBufferListC_ARGS )
static

Python: 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 1159 of file MkBufferListC_py.c.

1159 {
1162 MK_STRN str = 0;
1164 MK_NUM len = -1;
1166 MK_NUM startindex = 0;
1167 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (startindex))
1169 OT_retObj_SET_I32(MkBufferListSearchC (hdl, str, len, startindex));
1170 goto end;
1171 error:
1173 end:
1175}
#define OT_CHECK_OPTIONAL(val)
#define SearchC_doc
#define MkBufferListSearchC(...)

◆ pymkkernel_MkBufferListC_Size()

static OT_ProcRet pymkkernel_MkBufferListC_Size ( MkBufferListC_ARGS )
static

Python: int32 bfl.Size() C-API
get the number-of-items in the bfl

Definition at line 1178 of file MkBufferListC_py.c.

1178 {
1183 goto end;
1184 error:
1186 end:
1188}
#define Size_doc
#define MkBufferListSizeI(bfl)

◆ pymkkernel_MkBufferListC_Sort()

static OT_ProcRet pymkkernel_MkBufferListC_Sort ( MkBufferListC_ARGS )
static

Python: MkBufferListC bfl.Sort() C-API
sort a MkBufferListC

Definition at line 1066 of file MkBufferListC_py.c.

1066 {
1070 MK_BFL retVal = MkBufferListSort (hdl);
1071 OT_retObj_SET_BFL(retVal);
1072 goto end;
1073 error:
1075 end:
1077}
#define Sort_doc
#define MkBufferListSort(...)

◆ pymkkernel_MkBufferListC_ToBuffer()

static OT_ProcRet pymkkernel_MkBufferListC_ToBuffer ( MkBufferListC_ARGS )
static

Python: MkBufferC bfl.ToBuffer() C-API
Export a bfl into an MkBufferC using an MkBufferStreamC

Definition at line 1080 of file MkBufferListC_py.c.

1080 {
1084 MK_BUF retVal = MkBufferListToBuffer (hdl);
1085 OT_retObj_SET_BUF(retVal);
1086 goto end;
1087 error:
1089 end:
1091}
#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 …

◆ pymkkernel_MkBufferListC_ToList()

OT_ProcRet pymkkernel_MkBufferListC_ToList ( MkBufferListC_ARGS )

Python: [list...] bfl.ToList() C-API
get a target-language list representation of the bfl

Method definition

◆ pymkkernel_MkBufferListC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet pymkkernel_MkBufferListC_ToString ( MkBufferListC_ARGS )
static

Definition at line 1195 of file MkBufferListC_py.c.

#define OT_ERROR_LNG_RETURN