theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Misc_ATL_API

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

+ Collaboration diagram for MkBufferListC_Misc_ATL_API:

Functions

OT_ProcRet atlmkkernel_MkBufferListC_ToList (MkBufferListC_ARGS)
  Atl: [list...] [MkBufferListC::ToList $bfl] C-API
get a target-language list representation of the bfl
 
static OT_ProcRet atlmkkernel_MkBufferListC_FileGlob (OtClass_ARGS)
  Atl: (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 atlmkkernel_MkBufferListC_PositionMerge (MkBufferListC_ARGS)
  Atl: MkBufferListC [MkBufferListC::PositionMerge $bfl source:MkBufferListC position:int32] C-API
merge a MkBufferListS list into an MkBufferListS object on position
 
static OT_ProcRet atlmkkernel_MkBufferListC_Reset (MkBufferListC_ARGS)
  Atl: MkBufferListC [MkBufferListC::Reset $bfl] C-API
reset a MkBufferListC object …
 
static OT_ProcRet atlmkkernel_MkBufferListC_Sort (MkBufferListC_ARGS)
  Atl: MkBufferListC [MkBufferListC::Sort $bfl] C-API
sort a MkBufferListC
 
static OT_ProcRet atlmkkernel_MkBufferListC_ToBuffer (MkBufferListC_ARGS)
  Atl: MkBufferC [MkBufferListC::ToBuffer $bfl] C-API
Export a bfl into an MkBufferC using an MkBufferStreamC
 
static OT_ProcRet atlmkkernel_MkBufferListC_Cmp (MkBufferListC_ARGS)
  Atl: int32 [MkBufferListC::Cmp $bfl bfl2:MkBufferListC] C-API
compare two buffer-list
 
static OT_ProcRet atlmkkernel_MkBufferListC_Copy (MkBufferListC_ARGS)
  Atl: MkBufferListC::Copy $bfl src:MkBufferListC C-API
copy all internal data from src to tgt
 
static OT_ProcRet atlmkkernel_MkBufferListC_Move (MkBufferListC_ARGS)
  Atl: MkBufferListC::Move $to from:MkBufferListC C-API
move all internal data from from to the end of to
 
static OT_ProcRet atlmkkernel_MkBufferListC_Reserve (MkBufferListC_ARGS)
  Atl: MkBufferListC::Reserve $bfl num:int32 C-API
reserve num items in a MkBufferListC object …
 
static OT_ProcRet atlmkkernel_MkBufferListC_SearchC (MkBufferListC_ARGS)
  Atl: int32 [MkBufferListC::SearchC $bfl str:string ?len:int32=-1? ?startindex:int32=0?] C-API
search MK_STR item from a MkBufferListS object starting at startindex
 
static OT_ProcRet atlmkkernel_MkBufferListC_Size (MkBufferListC_ARGS)
  Atl: int32 [MkBufferListC::Size $bfl] C-API
get the number-of-items in the bfl
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmkkernel_MkBufferListC_ToString (MkBufferListC_ARGS)
 

Detailed Description

MkBufferListC - various functions to work on a MkBufferListS

Function Documentation

◆ atlmkkernel_MkBufferListC_Cmp()

static OT_ProcRet atlmkkernel_MkBufferListC_Cmp ( MkBufferListC_ARGS )
static

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

Definition at line 1097 of file MkBufferListC_atl.c.

1097 {
1100 MkBufferListCreateTLS_T(bfl2,10);
1104 goto end;
1105 error:
1107 end:
1109}
#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)

◆ atlmkkernel_MkBufferListC_Copy()

static OT_ProcRet atlmkkernel_MkBufferListC_Copy ( MkBufferListC_ARGS )
static

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

Definition at line 1112 of file MkBufferListC_atl.c.

1112 {
1118 MkBufferListCopy (hdl, src);
1120 goto end;
1121 error:
1123 end:
1125}
#define OT_retObj_SET_None
#define Copy_doc
#define MkBufferListCopy(...)

◆ atlmkkernel_MkBufferListC_FileGlob()

static OT_ProcRet atlmkkernel_MkBufferListC_FileGlob ( OtClass_ARGS )
static

Atl: (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 1013 of file MkBufferListC_atl.c.

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

◆ atlmkkernel_MkBufferListC_Move()

static OT_ProcRet atlmkkernel_MkBufferListC_Move ( MkBufferListC_ARGS )
static

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

Definition at line 1128 of file MkBufferListC_atl.c.

1128 {
1131 MkBufferListCreateTLS_T(from,10);
1134 MkBufferListMove (hdl, from);
1136 goto end;
1137 error:
1139 end:
1141}
#define Move_doc
#define MkBufferListMove(...)
#define OT_CHECK_BFL(val, nullB)

◆ atlmkkernel_MkBufferListC_PositionMerge()

static OT_ProcRet atlmkkernel_MkBufferListC_PositionMerge ( MkBufferListC_ARGS )
static

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

Definition at line 1035 of file MkBufferListC_atl.c.

1035 {
1038 MkBufferListCreateTLS_T(source,10);
1040 MK_NUM position = 0;
1043 MK_BFL retVal = MkBufferListPositionMerge (hdl, source, position);
1044 OT_retObj_SET_BFL(retVal);
1045 goto end;
1046 error:
1048 end:
1050}
#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 …

◆ atlmkkernel_MkBufferListC_Reserve()

static OT_ProcRet atlmkkernel_MkBufferListC_Reserve ( MkBufferListC_ARGS )
static

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

Definition at line 1144 of file MkBufferListC_atl.c.

1144 {
1147 MK_NUM num = 0;
1150 MkBufferListReserve (hdl, num);
1152 goto end;
1153 error:
1155 end:
1157}
#define Reserve_doc
#define MkBufferListReserve(...)

◆ atlmkkernel_MkBufferListC_Reset()

static OT_ProcRet atlmkkernel_MkBufferListC_Reset ( MkBufferListC_ARGS )
static

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

Definition at line 1053 of file MkBufferListC_atl.c.

1053 {
1057 MK_BFL retVal = MkBufferListReset (hdl);
1058 OT_retObj_SET_BFL(retVal);
1059 goto end;
1060 error:
1062 end:
1064}
#define OT_SETUP_NOARG(d)
#define Reset_doc
#define MkBufferListReset(...)

◆ atlmkkernel_MkBufferListC_SearchC()

static OT_ProcRet atlmkkernel_MkBufferListC_SearchC ( MkBufferListC_ARGS )
static

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

Definition at line 1160 of file MkBufferListC_atl.c.

1160 {
1163 MK_STRN str = 0;
1165 MK_NUM len = -1;
1167 MK_NUM startindex = 0;
1168 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (startindex))
1170 OT_retObj_SET_I32(MkBufferListSearchC (hdl, str, len, startindex));
1171 goto end;
1172 error:
1174 end:
1176}
#define OT_CHECK_OPTIONAL(val)
#define str(s)
#define SearchC_doc
#define MkBufferListSearchC(...)

◆ atlmkkernel_MkBufferListC_Size()

static OT_ProcRet atlmkkernel_MkBufferListC_Size ( MkBufferListC_ARGS )
static

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

Definition at line 1179 of file MkBufferListC_atl.c.

1179 {
1184 goto end;
1185 error:
1187 end:
1189}
#define Size_doc
#define MkBufferListSizeI(bfl)

◆ atlmkkernel_MkBufferListC_Sort()

static OT_ProcRet atlmkkernel_MkBufferListC_Sort ( MkBufferListC_ARGS )
static

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

Definition at line 1067 of file MkBufferListC_atl.c.

1067 {
1071 MK_BFL retVal = MkBufferListSort (hdl);
1072 OT_retObj_SET_BFL(retVal);
1073 goto end;
1074 error:
1076 end:
1078}
#define Sort_doc
#define MkBufferListSort(...)

◆ atlmkkernel_MkBufferListC_ToBuffer()

static OT_ProcRet atlmkkernel_MkBufferListC_ToBuffer ( MkBufferListC_ARGS )
static

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

Definition at line 1081 of file MkBufferListC_atl.c.

1081 {
1085 MK_BUF retVal = MkBufferListToBuffer (hdl);
1086 OT_retObj_SET_BUF(retVal);
1087 goto end;
1088 error:
1090 end:
1092}
#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 …

◆ atlmkkernel_MkBufferListC_ToList()

OT_ProcRet atlmkkernel_MkBufferListC_ToList ( MkBufferListC_ARGS )

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

◆ atlmkkernel_MkBufferListC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmkkernel_MkBufferListC_ToString ( MkBufferListC_ARGS )
static

Definition at line 1196 of file MkBufferListC_atl.c.

#define OT_ERROR_LNG_RETURN