theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_TOR_ATL_API

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

+ Collaboration diagram for MkBufferC_TOR_ATL_API:

Functions

static OT_ProcRet atlmkkernel_MkBufferC_Merge (MkBufferC_ARGS)
  Atl: (constructor) MkBufferC [MkBufferC::Merge $buf] C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …
 
static OT_ProcRet atlmkkernel_MkBufferC_Dup (MkBufferC_ARGS)
  Atl: (constructor) MkBufferC [MkBufferC::Dup $buf] C-API
Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance
 
static OT_ProcRet atlmkkernel_MkBufferC_CTOR (CONSTR_ARGS)
  Atl: (constructor,static) MkBufferC [MkBufferC::CTOR ?size:int32=0?] C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static OT_ProcRet atlmkkernel_MkBufferC_Create (OtClass_ARGS)
  Atl: (constructor,static) MkBufferC [MkBufferC::Create ?size:int32=0?] C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static OT_ProcRet atlmkkernel_MkBufferC_Create1024 (OtClass_ARGS)
  Atl: (constructor,static) MkBufferC [MkBufferC::Create1024 ?size:int32=0?] C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …
 
static OT_ProcRet atlmkkernel_MkBufferC_Create256 (OtClass_ARGS)
  Atl: (constructor,static) MkBufferC [MkBufferC::Create256 ?size:int32=0?] C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …
 
static OT_ProcRet atlmkkernel_MkBufferC_Create64 (OtClass_ARGS)
  Atl: (constructor,static) MkBufferC [MkBufferC::Create64 ?size:int32=0?] C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateBIN (OtClass_ARGS)
  Atl: doc_mk_atl_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateBOL (OtClass_ARGS)
  Atl: doc_mk_atl_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateBUF (OtClass_ARGS)
  Atl: (constructor,static) MkBufferC [MkBufferC::CreateBUF val:MkBufferC] C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateDBL (OtClass_ARGS)
  Atl: doc_mk_atl_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateFLT (OtClass_ARGS)
  Atl: doc_mk_atl_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateI16 (OtClass_ARGS)
  Atl: doc_mk_atl_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateI32 (OtClass_ARGS)
  Atl: doc_mk_atl_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateI64 (OtClass_ARGS)
  Atl: doc_mk_atl_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateI8 (OtClass_ARGS)
  Atl: doc_mk_atl_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateSTR (OtClass_ARGS)
  Atl: doc_mk_atl_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet atlmkkernel_MkBufferC_CreateTLS (OtClass_ARGS)
  Atl: (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

◆ atlmkkernel_MkBufferC_Create()

static OT_ProcRet atlmkkernel_MkBufferC_Create ( OtClass_ARGS )
static

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

Definition at line 1067 of file MkBufferC_atl.c.

1067 {
1070 MK_NUM size = 0;
1073 MK_BUF retVal = MkBufferCreate (NULL, size);
1074 if (retVal == NULL) {
1075 OT_ERROR_CONSTRUCTOR(MkBufferC);
1076 goto error;
1077 }
1078 OT_CONSTRUCTOR_POST(retVal)
1079 OT_retObj_SET_BUF(retVal);
1080 goto end;
1081 error:
1083 end:
1085}
#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 …

◆ atlmkkernel_MkBufferC_Create1024()

static OT_ProcRet atlmkkernel_MkBufferC_Create1024 ( OtClass_ARGS )
static

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

Definition at line 1088 of file MkBufferC_atl.c.

1088 {
1091 MK_NUM size = 0;
1094 MK_BUF retVal = MkBufferCreate1024 (size);
1095 if (retVal == NULL) {
1096 OT_ERROR_CONSTRUCTOR(MkBufferC);
1097 goto error;
1098 }
1099 OT_retObj_SET_BUF(retVal);
1100 goto end;
1101 error:
1103 end:
1105}
#define Create1024_doc
#define MkBufferCreate1024(...)

◆ atlmkkernel_MkBufferC_Create256()

static OT_ProcRet atlmkkernel_MkBufferC_Create256 ( OtClass_ARGS )
static

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

Definition at line 1108 of file MkBufferC_atl.c.

1108 {
1111 MK_NUM size = 0;
1114 MK_BUF retVal = MkBufferCreate256 (size);
1115 if (retVal == NULL) {
1116 OT_ERROR_CONSTRUCTOR(MkBufferC);
1117 goto error;
1118 }
1119 OT_retObj_SET_BUF(retVal);
1120 goto end;
1121 error:
1123 end:
1125}
#define Create256_doc
#define MkBufferCreate256(...)

◆ atlmkkernel_MkBufferC_Create64()

static OT_ProcRet atlmkkernel_MkBufferC_Create64 ( OtClass_ARGS )
static

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

Definition at line 1128 of file MkBufferC_atl.c.

1128 {
1131 MK_NUM size = 0;
1134 MK_BUF retVal = MkBufferCreate64 (size);
1135 if (retVal == NULL) {
1136 OT_ERROR_CONSTRUCTOR(MkBufferC);
1137 goto error;
1138 }
1139 OT_retObj_SET_BUF(retVal);
1140 goto end;
1141 error:
1143 end:
1145}
#define Create64_doc
#define MkBufferCreate64(...)

◆ atlmkkernel_MkBufferC_CreateBIN()

static OT_ProcRet atlmkkernel_MkBufferC_CreateBIN ( OtClass_ARGS )
static

Atl: doc_mk_atl_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1148 of file MkBufferC_atl.c.

1148 {
1151 MkBinaryR val = {0};
1154 MK_BUF retVal = MkBufferCreateBIN (val);
1155 if (retVal == NULL) {
1156 OT_ERROR_CONSTRUCTOR(MkBufferC);
1157 goto error;
1158 }
1159 OT_retObj_SET_BUF(retVal);
1160 goto end;
1161 error:
1163 end:
1165}
#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 …

◆ atlmkkernel_MkBufferC_CreateBOL()

static OT_ProcRet atlmkkernel_MkBufferC_CreateBOL ( OtClass_ARGS )
static

Atl: doc_mk_atl_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1168 of file MkBufferC_atl.c.

1168 {
1171 MK_BOL val = 0;
1174 MK_BUF retVal = MkBufferCreateBOL ((MK_BOL)(val?1:0));
1175 if (retVal == NULL) {
1176 OT_ERROR_CONSTRUCTOR(MkBufferC);
1177 goto error;
1178 }
1179 OT_retObj_SET_BUF(retVal);
1180 goto end;
1181 error:
1183 end:
1185}
#define OT_CHECK_NB1(val)
#define CreateBOL_doc
#define MkBufferCreateBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ atlmkkernel_MkBufferC_CreateBUF()

static OT_ProcRet atlmkkernel_MkBufferC_CreateBUF ( OtClass_ARGS )
static

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

Definition at line 1188 of file MkBufferC_atl.c.

1188 {
1191 MK_BUFN val = 0;
1194 MK_BUF retVal = MkBufferCreateBUF (val);
1195 if (retVal == NULL) {
1196 OT_ERROR_CONSTRUCTOR(MkBufferC);
1197 goto error;
1198 }
1199 OT_retObj_SET_BUF(retVal);
1200 goto end;
1201 error:
1203 end:
1205}
#define CreateBUF_doc
#define MkBufferCreateBUF(...)
#define MK_NULL_NO
flag, not allow NULL
#define OT_CHECK_BUFN(val, nullB)

◆ atlmkkernel_MkBufferC_CreateDBL()

static OT_ProcRet atlmkkernel_MkBufferC_CreateDBL ( OtClass_ARGS )
static

Atl: doc_mk_atl_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1208 of file MkBufferC_atl.c.

1208 {
1211 MK_DBL val = 0;
1214 MK_BUF retVal = MkBufferCreateDBL (val);
1215 if (retVal == NULL) {
1216 OT_ERROR_CONSTRUCTOR(MkBufferC);
1217 goto error;
1218 }
1219 OT_retObj_SET_BUF(retVal);
1220 goto end;
1221 error:
1223 end:
1225}
#define OT_CHECK_NF8(val)
#define CreateDBL_doc
#define MkBufferCreateDBL(...)
double MK_DBL
8 byte double data-type

◆ atlmkkernel_MkBufferC_CreateFLT()

static OT_ProcRet atlmkkernel_MkBufferC_CreateFLT ( OtClass_ARGS )
static

Atl: doc_mk_atl_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1228 of file MkBufferC_atl.c.

1228 {
1231 MK_FLT val = 0;
1234 MK_BUF retVal = MkBufferCreateFLT (val);
1235 if (retVal == NULL) {
1236 OT_ERROR_CONSTRUCTOR(MkBufferC);
1237 goto error;
1238 }
1239 OT_retObj_SET_BUF(retVal);
1240 goto end;
1241 error:
1243 end:
1245}
#define OT_CHECK_NF4(val)
#define CreateFLT_doc
#define MkBufferCreateFLT(...)
float MK_FLT
4 byte float data-type

◆ atlmkkernel_MkBufferC_CreateI16()

static OT_ProcRet atlmkkernel_MkBufferC_CreateI16 ( OtClass_ARGS )
static

Atl: doc_mk_atl_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1248 of file MkBufferC_atl.c.

1248 {
1251 MK_I16 val = 0;
1254 MK_BUF retVal = MkBufferCreateI16 (val);
1255 if (retVal == NULL) {
1256 OT_ERROR_CONSTRUCTOR(MkBufferC);
1257 goto error;
1258 }
1259 OT_retObj_SET_BUF(retVal);
1260 goto end;
1261 error:
1263 end:
1265}
#define OT_CHECK_NI2(val)
#define CreateI16_doc
#define MkBufferCreateI16(...)
signed short int MK_I16
2 byte short data-type

◆ atlmkkernel_MkBufferC_CreateI32()

static OT_ProcRet atlmkkernel_MkBufferC_CreateI32 ( OtClass_ARGS )
static

Atl: doc_mk_atl_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1268 of file MkBufferC_atl.c.

1268 {
1271 MK_I32 val = 0;
1274 MK_BUF retVal = MkBufferCreateI32 (val);
1275 if (retVal == NULL) {
1276 OT_ERROR_CONSTRUCTOR(MkBufferC);
1277 goto error;
1278 }
1279 OT_retObj_SET_BUF(retVal);
1280 goto end;
1281 error:
1283 end:
1285}
#define CreateI32_doc
#define MkBufferCreateI32(...)
signed int MK_I32
4 byte integer data-type

◆ atlmkkernel_MkBufferC_CreateI64()

static OT_ProcRet atlmkkernel_MkBufferC_CreateI64 ( OtClass_ARGS )
static

Atl: doc_mk_atl_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1288 of file MkBufferC_atl.c.

1288 {
1291 MK_I64 val = 0;
1294 MK_BUF retVal = MkBufferCreateI64 (val);
1295 if (retVal == NULL) {
1296 OT_ERROR_CONSTRUCTOR(MkBufferC);
1297 goto error;
1298 }
1299 OT_retObj_SET_BUF(retVal);
1300 goto end;
1301 error:
1303 end:
1305}
#define OT_CHECK_NI8(val)
#define CreateI64_doc
#define MkBufferCreateI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ atlmkkernel_MkBufferC_CreateI8()

static OT_ProcRet atlmkkernel_MkBufferC_CreateI8 ( OtClass_ARGS )
static

Atl: doc_mk_atl_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1308 of file MkBufferC_atl.c.

1308 {
1311 MK_I8 val = 0;
1314 MK_BUF retVal = MkBufferCreateI8 ((MK_I8)(val));
1315 if (retVal == NULL) {
1316 OT_ERROR_CONSTRUCTOR(MkBufferC);
1317 goto error;
1318 }
1319 OT_retObj_SET_BUF(retVal);
1320 goto end;
1321 error:
1323 end:
1325}
#define OT_CHECK_NI1(val)
#define CreateI8_doc
#define MkBufferCreateI8(...)
signed char MK_I8
1 byte byte data-type

◆ atlmkkernel_MkBufferC_CreateSTR()

static OT_ProcRet atlmkkernel_MkBufferC_CreateSTR ( OtClass_ARGS )
static

Atl: doc_mk_atl_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1328 of file MkBufferC_atl.c.

1328 {
1331 MK_STRN val = 0;
1334 MK_BUF retVal = MkBufferCreateSTR (val);
1335 if (retVal == NULL) {
1336 OT_ERROR_CONSTRUCTOR(MkBufferC);
1337 goto error;
1338 }
1339 OT_retObj_SET_BUF(retVal);
1340 goto end;
1341 error:
1343 end:
1345}
#define OT_CHECK_STRN(val)
#define CreateSTR_doc
#define MkBufferCreateSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ atlmkkernel_MkBufferC_CreateTLS()

static OT_ProcRet atlmkkernel_MkBufferC_CreateTLS ( OtClass_ARGS )
static

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

Definition at line 1350 of file MkBufferC_atl.c.

1350 {
1353 MK_STRN tlsName = 0;
1355 MK_BOOL resetB = true;
1358 MK_BUF retVal = MkBufferCreateTLS (tlsName, resetB);
1359 OT_retObj_SET_BUF(retVal);
1360 goto end;
1361 error:
1363 end:
1365}
#define OT_CHECK_bool(val)
#define CreateTLS_doc
#define OT_SETUP_hdl_static
#define MkBufferCreateTLS(...)
bool MK_BOOL
real bool data-type

◆ atlmkkernel_MkBufferC_CTOR()

static OT_ProcRet atlmkkernel_MkBufferC_CTOR ( CONSTR_ARGS )
static

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

Definition at line 1047 of file MkBufferC_atl.c.

1047 {
1050 MK_NUM size = 0;
1052 MK_BUF retVal = MkBufferCreate (NULL, size);
1053 if (retVal == NULL) {
1054 OT_ERROR_CONSTRUCTOR(MkBufferC);
1055 goto error;
1056 }
1057 OT_CONSTRUCTOR_POST(retVal)
1058 OT_retObj_CONSTR(retVal);
1059 goto end;
1060 error:
1062 end:
1064}
#define OT_SETUP_CONSTRUCTOR_ARGS(...)
#define OT_SETUP_hdl_constr
#define OT_retObj_CONSTR(x)
#define CTOR_doc

◆ atlmkkernel_MkBufferC_Dup()

static OT_ProcRet atlmkkernel_MkBufferC_Dup ( MkBufferC_ARGS )
static

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

Definition at line 1027 of file MkBufferC_atl.c.

1027 {
1031 MK_BUF retVal = MkBufferDup (hdl);
1032 if (retVal == NULL) {
1033 OT_ERROR_CONSTRUCTOR(MkBufferC);
1034 goto error;
1035 }
1036 OT_retObj_SET_BUF(retVal);
1037 goto end;
1038 error:
1040 end:
1042}
#define OT_SETUP_NOARG(d)
#define OT_SETUP_hdl
#define Dup_doc
#define MkBufferDup(...)

◆ atlmkkernel_MkBufferC_Merge()

static OT_ProcRet atlmkkernel_MkBufferC_Merge ( MkBufferC_ARGS )
static

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

Definition at line 1007 of file MkBufferC_atl.c.

1007 {
1011 MK_BUF retVal = MkBufferMerge (hdl);
1012 if (retVal == NULL) {
1013 OT_ERROR_CONSTRUCTOR(MkBufferC);
1014 goto error;
1015 }
1016 OT_retObj_SET_BUF(retVal);
1017 goto end;
1018 error:
1020 end:
1022}
#define Merge_doc
#define MkBufferMerge(...)