theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_TOR_PY_API

MkBufferC - various functions to create, initialize and destroy a MkBufferCMore...

+ Collaboration diagram for MkBufferC_TOR_PY_API:

Functions

static OT_ProcRet pymkkernel_MkBufferC_Merge (MkBufferC_ARGS)
  Python: [constructor] MkBufferC buf.Merge() C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …
 
static OT_ProcRet pymkkernel_MkBufferC_Dup (MkBufferC_ARGS)
  Python: [constructor] MkBufferC buf.Dup() C-API
Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance
 
static OT_ProcRet pymkkernel_MkBufferC_Create (OtClass_ARGS)
  Python: [constructor,static] MkBufferC MkBufferC.Create(?size:int32=0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static OT_ProcRet pymkkernel_MkBufferC_Create1024 (OtClass_ARGS)
  Python: [constructor,static] MkBufferC MkBufferC.Create1024(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …
 
static OT_ProcRet pymkkernel_MkBufferC_Create256 (OtClass_ARGS)
  Python: [constructor,static] MkBufferC MkBufferC.Create256(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …
 
static OT_ProcRet pymkkernel_MkBufferC_Create64 (OtClass_ARGS)
  Python: [constructor,static] MkBufferC MkBufferC.Create64(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …
 
static OT_ProcRet pymkkernel_MkBufferC_CreateBIN (OtClass_ARGS)
  Python: doc_mk_py_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_CreateBOL (OtClass_ARGS)
  Python: doc_mk_py_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_CreateBUF (OtClass_ARGS)
  Python: [constructor,static] MkBufferC MkBufferC.CreateBUF(val:MkBufferC) C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_CreateDBL (OtClass_ARGS)
  Python: doc_mk_py_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_CreateFLT (OtClass_ARGS)
  Python: doc_mk_py_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_CreateI16 (OtClass_ARGS)
  Python: doc_mk_py_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_CreateI32 (OtClass_ARGS)
  Python: doc_mk_py_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_CreateI64 (OtClass_ARGS)
  Python: doc_mk_py_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_CreateI8 (OtClass_ARGS)
  Python: doc_mk_py_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_CreateSTR (OtClass_ARGS)
  Python: doc_mk_py_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet pymkkernel_MkBufferC_new (CONSTR_ARGS)
  Python: [constructor,static] MkBufferC MkBufferC.new(?size:int32=0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static OT_ProcRet pymkkernel_MkBufferC_CreateTLS (OtClass_ARGS)
  Python: [static] MkBufferC MkBufferC.CreateTLS(tlsName:string, ?resetB:bool=true?) C-API
same as BufferCreate but require no cleanup
 

Detailed Description

MkBufferC - various functions to create, initialize and destroy a MkBufferC

Function Documentation

◆ pymkkernel_MkBufferC_Create()

static OT_ProcRet pymkkernel_MkBufferC_Create ( OtClass_ARGS )
static

Python: [constructor,static] MkBufferC MkBufferC.Create(?size:int32=0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …

Definition at line 1055 of file MkBufferC_py.c.

1055 {
1058 MK_NUM size = 0;
1061 MK_BUF retVal = MkBufferCreate (NULL, size);
1062 if (retVal == NULL) {
1063 OT_ERROR_CONSTRUCTOR(MkBufferC);
1064 goto error;
1065 }
1066 OT_CONSTRUCTOR_POST(retVal)
1067 OT_retObj_SET_BUF(retVal);
1068 goto end;
1069 error:
1071 end:
1073}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_Error
#define OT_CONSTRUCTOR_POST(x)
#define OT_retObj_SET_BUF(nat)
#define OT_ERROR_CONSTRUCTOR(class)
#define OT_retObj_RETURN
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define OT_SETUP_hdl_static_constr
#define Create_doc
#define MkBufferCreate(...)
int32_t MK_NUM
array size data-type ('num' items in array …
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

◆ pymkkernel_MkBufferC_Create1024()

static OT_ProcRet pymkkernel_MkBufferC_Create1024 ( OtClass_ARGS )
static

Python: [constructor,static] MkBufferC MkBufferC.Create1024(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …

Definition at line 1076 of file MkBufferC_py.c.

1076 {
1079 MK_NUM size = 0;
1082 MK_BUF retVal = MkBufferCreate1024 (size);
1083 if (retVal == NULL) {
1084 OT_ERROR_CONSTRUCTOR(MkBufferC);
1085 goto error;
1086 }
1087 OT_retObj_SET_BUF(retVal);
1088 goto end;
1089 error:
1091 end:
1093}
#define Create1024_doc
#define MkBufferCreate1024(...)

◆ pymkkernel_MkBufferC_Create256()

static OT_ProcRet pymkkernel_MkBufferC_Create256 ( OtClass_ARGS )
static

Python: [constructor,static] MkBufferC MkBufferC.Create256(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …

Definition at line 1096 of file MkBufferC_py.c.

1096 {
1099 MK_NUM size = 0;
1102 MK_BUF retVal = MkBufferCreate256 (size);
1103 if (retVal == NULL) {
1104 OT_ERROR_CONSTRUCTOR(MkBufferC);
1105 goto error;
1106 }
1107 OT_retObj_SET_BUF(retVal);
1108 goto end;
1109 error:
1111 end:
1113}
#define Create256_doc
#define MkBufferCreate256(...)

◆ pymkkernel_MkBufferC_Create64()

static OT_ProcRet pymkkernel_MkBufferC_Create64 ( OtClass_ARGS )
static

Python: [constructor,static] MkBufferC MkBufferC.Create64(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …

Definition at line 1116 of file MkBufferC_py.c.

1116 {
1119 MK_NUM size = 0;
1122 MK_BUF retVal = MkBufferCreate64 (size);
1123 if (retVal == NULL) {
1124 OT_ERROR_CONSTRUCTOR(MkBufferC);
1125 goto error;
1126 }
1127 OT_retObj_SET_BUF(retVal);
1128 goto end;
1129 error:
1131 end:
1133}
#define Create64_doc
#define MkBufferCreate64(...)

◆ pymkkernel_MkBufferC_CreateBIN()

static OT_ProcRet pymkkernel_MkBufferC_CreateBIN ( OtClass_ARGS )
static

Python: doc_mk_py_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1136 of file MkBufferC_py.c.

1136 {
1139 MkBinaryR val = {0};
1142 MK_BUF retVal = MkBufferCreateBIN (val);
1143 if (retVal == NULL) {
1144 OT_ERROR_CONSTRUCTOR(MkBufferC);
1145 goto error;
1146 }
1147 OT_retObj_SET_BUF(retVal);
1148 goto end;
1149 error:
1151 end:
1153}
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define OT_CHECK__ME_REF_MkBinaryR(val)
#define CreateBIN_doc
#define MkBufferCreateBIN(...)
binary data default format …

◆ pymkkernel_MkBufferC_CreateBOL()

static OT_ProcRet pymkkernel_MkBufferC_CreateBOL ( OtClass_ARGS )
static

Python: doc_mk_py_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1156 of file MkBufferC_py.c.

1156 {
1159 MK_BOL val = 0;
1162 MK_BUF retVal = MkBufferCreateBOL ((MK_BOL)(val?1:0));
1163 if (retVal == NULL) {
1164 OT_ERROR_CONSTRUCTOR(MkBufferC);
1165 goto error;
1166 }
1167 OT_retObj_SET_BUF(retVal);
1168 goto end;
1169 error:
1171 end:
1173}
#define OT_CHECK_NB1(val)
#define CreateBOL_doc
#define MkBufferCreateBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ pymkkernel_MkBufferC_CreateBUF()

static OT_ProcRet pymkkernel_MkBufferC_CreateBUF ( OtClass_ARGS )
static

Python: [constructor,static] MkBufferC MkBufferC.CreateBUF(val:MkBufferC) C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1176 of file MkBufferC_py.c.

1176 {
1179 MK_BUFN val = 0;
1182 MK_BUF retVal = MkBufferCreateBUF (val);
1183 if (retVal == NULL) {
1184 OT_ERROR_CONSTRUCTOR(MkBufferC);
1185 goto error;
1186 }
1187 OT_retObj_SET_BUF(retVal);
1188 goto end;
1189 error:
1191 end:
1193}
#define CreateBUF_doc
#define MkBufferCreateBUF(...)
#define MK_NULL_NO
flag, not allow NULL
#define OT_CHECK_BUFN(val, nullB)

◆ pymkkernel_MkBufferC_CreateDBL()

static OT_ProcRet pymkkernel_MkBufferC_CreateDBL ( OtClass_ARGS )
static

Python: doc_mk_py_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1196 of file MkBufferC_py.c.

1196 {
1199 MK_DBL val = 0;
1202 MK_BUF retVal = MkBufferCreateDBL (val);
1203 if (retVal == NULL) {
1204 OT_ERROR_CONSTRUCTOR(MkBufferC);
1205 goto error;
1206 }
1207 OT_retObj_SET_BUF(retVal);
1208 goto end;
1209 error:
1211 end:
1213}
#define OT_CHECK_NF8(val)
#define CreateDBL_doc
#define MkBufferCreateDBL(...)
double MK_DBL
8 byte double data-type

◆ pymkkernel_MkBufferC_CreateFLT()

static OT_ProcRet pymkkernel_MkBufferC_CreateFLT ( OtClass_ARGS )
static

Python: doc_mk_py_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1216 of file MkBufferC_py.c.

1216 {
1219 MK_FLT val = 0;
1222 MK_BUF retVal = MkBufferCreateFLT (val);
1223 if (retVal == NULL) {
1224 OT_ERROR_CONSTRUCTOR(MkBufferC);
1225 goto error;
1226 }
1227 OT_retObj_SET_BUF(retVal);
1228 goto end;
1229 error:
1231 end:
1233}
#define OT_CHECK_NF4(val)
#define CreateFLT_doc
#define MkBufferCreateFLT(...)
float MK_FLT
4 byte float data-type

◆ pymkkernel_MkBufferC_CreateI16()

static OT_ProcRet pymkkernel_MkBufferC_CreateI16 ( OtClass_ARGS )
static

Python: doc_mk_py_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1236 of file MkBufferC_py.c.

1236 {
1239 MK_I16 val = 0;
1242 MK_BUF retVal = MkBufferCreateI16 (val);
1243 if (retVal == NULL) {
1244 OT_ERROR_CONSTRUCTOR(MkBufferC);
1245 goto error;
1246 }
1247 OT_retObj_SET_BUF(retVal);
1248 goto end;
1249 error:
1251 end:
1253}
#define OT_CHECK_NI2(val)
#define CreateI16_doc
#define MkBufferCreateI16(...)
signed short int MK_I16
2 byte short data-type

◆ pymkkernel_MkBufferC_CreateI32()

static OT_ProcRet pymkkernel_MkBufferC_CreateI32 ( OtClass_ARGS )
static

Python: doc_mk_py_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1256 of file MkBufferC_py.c.

1256 {
1259 MK_I32 val = 0;
1262 MK_BUF retVal = MkBufferCreateI32 (val);
1263 if (retVal == NULL) {
1264 OT_ERROR_CONSTRUCTOR(MkBufferC);
1265 goto error;
1266 }
1267 OT_retObj_SET_BUF(retVal);
1268 goto end;
1269 error:
1271 end:
1273}
#define CreateI32_doc
#define MkBufferCreateI32(...)
signed int MK_I32
4 byte integer data-type

◆ pymkkernel_MkBufferC_CreateI64()

static OT_ProcRet pymkkernel_MkBufferC_CreateI64 ( OtClass_ARGS )
static

Python: doc_mk_py_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1276 of file MkBufferC_py.c.

1276 {
1279 MK_I64 val = 0;
1282 MK_BUF retVal = MkBufferCreateI64 (val);
1283 if (retVal == NULL) {
1284 OT_ERROR_CONSTRUCTOR(MkBufferC);
1285 goto error;
1286 }
1287 OT_retObj_SET_BUF(retVal);
1288 goto end;
1289 error:
1291 end:
1293}
#define OT_CHECK_NI8(val)
#define CreateI64_doc
#define MkBufferCreateI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ pymkkernel_MkBufferC_CreateI8()

static OT_ProcRet pymkkernel_MkBufferC_CreateI8 ( OtClass_ARGS )
static

Python: doc_mk_py_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1296 of file MkBufferC_py.c.

1296 {
1299 MK_I8 val = 0;
1302 MK_BUF retVal = MkBufferCreateI8 ((MK_I8)(val));
1303 if (retVal == NULL) {
1304 OT_ERROR_CONSTRUCTOR(MkBufferC);
1305 goto error;
1306 }
1307 OT_retObj_SET_BUF(retVal);
1308 goto end;
1309 error:
1311 end:
1313}
#define OT_CHECK_NI1(val)
#define CreateI8_doc
#define MkBufferCreateI8(...)
signed char MK_I8
1 byte byte data-type

◆ pymkkernel_MkBufferC_CreateSTR()

static OT_ProcRet pymkkernel_MkBufferC_CreateSTR ( OtClass_ARGS )
static

Python: doc_mk_py_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1316 of file MkBufferC_py.c.

1316 {
1319 MK_STRN val = 0;
1322 MK_BUF retVal = MkBufferCreateSTR (val);
1323 if (retVal == NULL) {
1324 OT_ERROR_CONSTRUCTOR(MkBufferC);
1325 goto error;
1326 }
1327 OT_retObj_SET_BUF(retVal);
1328 goto end;
1329 error:
1331 end:
1333}
#define OT_CHECK_STRN(val)
#define CreateSTR_doc
#define MkBufferCreateSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ pymkkernel_MkBufferC_CreateTLS()

static OT_ProcRet pymkkernel_MkBufferC_CreateTLS ( OtClass_ARGS )
static

Python: [static] MkBufferC MkBufferC.CreateTLS(tlsName:string, ?resetB:bool=true?) C-API
same as BufferCreate but require no cleanup

Definition at line 1358 of file MkBufferC_py.c.

1358 {
1361 MK_STRN tlsName = 0;
1363 MK_BOOL resetB = true;
1366 MK_BUF retVal = MkBufferCreateTLS (tlsName, resetB);
1367 OT_retObj_SET_BUF(retVal);
1368 goto end;
1369 error:
1371 end:
1373}
#define OT_CHECK_bool(val)
#define CreateTLS_doc
#define OT_SETUP_hdl_static
#define MkBufferCreateTLS(...)
bool MK_BOOL
real bool data-type

◆ pymkkernel_MkBufferC_Dup()

static OT_ProcRet pymkkernel_MkBufferC_Dup ( MkBufferC_ARGS )
static

Python: [constructor] MkBufferC buf.Dup() C-API
Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance

Definition at line 1035 of file MkBufferC_py.c.

1035 {
1039 MK_BUF retVal = MkBufferDup (hdl);
1040 if (retVal == NULL) {
1041 OT_ERROR_CONSTRUCTOR(MkBufferC);
1042 goto error;
1043 }
1044 OT_retObj_SET_BUF(retVal);
1045 goto end;
1046 error:
1048 end:
1050}
#define OT_SETUP_NOARG(d)
#define OT_SETUP_hdl
#define Dup_doc
#define MkBufferDup(...)

◆ pymkkernel_MkBufferC_Merge()

static OT_ProcRet pymkkernel_MkBufferC_Merge ( MkBufferC_ARGS )
static

Python: [constructor] MkBufferC buf.Merge() C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …

Definition at line 1015 of file MkBufferC_py.c.

1015 {
1019 MK_BUF retVal = MkBufferMerge (hdl);
1020 if (retVal == NULL) {
1021 OT_ERROR_CONSTRUCTOR(MkBufferC);
1022 goto error;
1023 }
1024 OT_retObj_SET_BUF(retVal);
1025 goto end;
1026 error:
1028 end:
1030}
#define Merge_doc
#define MkBufferMerge(...)

◆ pymkkernel_MkBufferC_new()

static OT_ProcRet pymkkernel_MkBufferC_new ( CONSTR_ARGS )
static

Python: [constructor,static] MkBufferC MkBufferC.new(?size:int32=0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …

Definition at line 1336 of file MkBufferC_py.c.

1336 {
1339 MK_NUM size = 0;
1341 MK_BUF retVal = MkBufferCreate (NULL, size);
1342 if (retVal == NULL) {
1343 OT_ERROR_CONSTRUCTOR(MkBufferC);
1344 goto error;
1345 }
1346 OT_CONSTRUCTOR_POST(retVal)
1347 OT_retObj_CONSTR(retVal);
1348 goto end;
1349 error:
1351 end:
1353}
#define OT_SETUP_CONSTRUCTOR_ARGS(...)
#define OT_retObj_CONSTR(mng)
#define OT_SETUP_hdl_constr
#define new_doc