theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_TOR_TCL_API

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

+ Collaboration diagram for MkBufferC_TOR_TCL_API:

Functions

static OT_ProcRet tclmkkernel_MkBufferC_Merge (MkBufferC_ARGS)
  Tcl: (constructor) MkBufferC [$buf Merge] C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …
 
static OT_ProcRet tclmkkernel_MkBufferC_Dup (MkBufferC_ARGS)
  Tcl: (constructor) MkBufferC [$buf Dup] C-API
Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance
 
static OT_ProcRet tclmkkernel_MkBufferC_CTOR (CONSTR_ARGS)
  Tcl: (constructor,static) MkBufferC [MkBufferC CTOR ?size:int32=0?] C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static OT_ProcRet tclmkkernel_MkBufferC_Create (OtClass_ARGS)
  Tcl: (constructor,static) MkBufferC [MkBufferC Create ?size:int32=0?] C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static OT_ProcRet tclmkkernel_MkBufferC_Create1024 (OtClass_ARGS)
  Tcl: (constructor,static) MkBufferC [MkBufferC Create1024 ?size:int32=0?] C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …
 
static OT_ProcRet tclmkkernel_MkBufferC_Create256 (OtClass_ARGS)
  Tcl: (constructor,static) MkBufferC [MkBufferC Create256 ?size:int32=0?] C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …
 
static OT_ProcRet tclmkkernel_MkBufferC_Create64 (OtClass_ARGS)
  Tcl: (constructor,static) MkBufferC [MkBufferC Create64 ?size:int32=0?] C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateBIN (OtClass_ARGS)
  Tcl: doc_mk_tcl_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateBOL (OtClass_ARGS)
  Tcl: doc_mk_tcl_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateBUF (OtClass_ARGS)
  Tcl: (constructor,static) MkBufferC [MkBufferC CreateBUF val:MkBufferC] C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateDBL (OtClass_ARGS)
  Tcl: doc_mk_tcl_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateFLT (OtClass_ARGS)
  Tcl: doc_mk_tcl_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateI16 (OtClass_ARGS)
  Tcl: doc_mk_tcl_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateI32 (OtClass_ARGS)
  Tcl: doc_mk_tcl_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateI64 (OtClass_ARGS)
  Tcl: doc_mk_tcl_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateI8 (OtClass_ARGS)
  Tcl: doc_mk_tcl_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateSTR (OtClass_ARGS)
  Tcl: doc_mk_tcl_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet tclmkkernel_MkBufferC_CreateTLS (OtClass_ARGS)
  Tcl: (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

◆ tclmkkernel_MkBufferC_Create()

static OT_ProcRet tclmkkernel_MkBufferC_Create ( OtClass_ARGS )
static

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

Definition at line 1088 of file MkBufferC_tcl.c.

1088 {
1091 MK_NUM size = 0;
1094 MK_BUF retVal = MkBufferCreate (NULL, size);
1095 if (retVal == NULL) {
1096 OT_ERROR_CONSTRUCTOR(MkBufferC);
1097 goto error;
1098 }
1099 OT_CONSTRUCTOR_POST(retVal)
1100 OT_retObj_SET_BUF(retVal);
1101 goto end;
1102 error:
1104 end:
1106}
#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 …

◆ tclmkkernel_MkBufferC_Create1024()

static OT_ProcRet tclmkkernel_MkBufferC_Create1024 ( OtClass_ARGS )
static

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

Definition at line 1109 of file MkBufferC_tcl.c.

1109 {
1112 MK_NUM size = 0;
1115 MK_BUF retVal = MkBufferCreate1024 (size);
1116 if (retVal == NULL) {
1117 OT_ERROR_CONSTRUCTOR(MkBufferC);
1118 goto error;
1119 }
1120 OT_retObj_SET_BUF(retVal);
1121 goto end;
1122 error:
1124 end:
1126}
#define Create1024_doc
#define MkBufferCreate1024(...)

◆ tclmkkernel_MkBufferC_Create256()

static OT_ProcRet tclmkkernel_MkBufferC_Create256 ( OtClass_ARGS )
static

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

Definition at line 1129 of file MkBufferC_tcl.c.

1129 {
1132 MK_NUM size = 0;
1135 MK_BUF retVal = MkBufferCreate256 (size);
1136 if (retVal == NULL) {
1137 OT_ERROR_CONSTRUCTOR(MkBufferC);
1138 goto error;
1139 }
1140 OT_retObj_SET_BUF(retVal);
1141 goto end;
1142 error:
1144 end:
1146}
#define Create256_doc
#define MkBufferCreate256(...)

◆ tclmkkernel_MkBufferC_Create64()

static OT_ProcRet tclmkkernel_MkBufferC_Create64 ( OtClass_ARGS )
static

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

Definition at line 1149 of file MkBufferC_tcl.c.

1149 {
1152 MK_NUM size = 0;
1155 MK_BUF retVal = MkBufferCreate64 (size);
1156 if (retVal == NULL) {
1157 OT_ERROR_CONSTRUCTOR(MkBufferC);
1158 goto error;
1159 }
1160 OT_retObj_SET_BUF(retVal);
1161 goto end;
1162 error:
1164 end:
1166}
#define Create64_doc
#define MkBufferCreate64(...)

◆ tclmkkernel_MkBufferC_CreateBIN()

static OT_ProcRet tclmkkernel_MkBufferC_CreateBIN ( OtClass_ARGS )
static

Tcl: doc_mk_tcl_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1169 of file MkBufferC_tcl.c.

1169 {
1172 MkBinaryR val = {0};
1175 MK_BUF retVal = MkBufferCreateBIN (val);
1176 if (retVal == NULL) {
1177 OT_ERROR_CONSTRUCTOR(MkBufferC);
1178 goto error;
1179 }
1180 OT_retObj_SET_BUF(retVal);
1181 goto end;
1182 error:
1184 end:
1186}
#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 …

◆ tclmkkernel_MkBufferC_CreateBOL()

static OT_ProcRet tclmkkernel_MkBufferC_CreateBOL ( OtClass_ARGS )
static

Tcl: doc_mk_tcl_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1189 of file MkBufferC_tcl.c.

1189 {
1192 MK_BOL val = 0;
1195 MK_BUF retVal = MkBufferCreateBOL ((MK_BOL)(val?1:0));
1196 if (retVal == NULL) {
1197 OT_ERROR_CONSTRUCTOR(MkBufferC);
1198 goto error;
1199 }
1200 OT_retObj_SET_BUF(retVal);
1201 goto end;
1202 error:
1204 end:
1206}
#define OT_CHECK_NB1(val)
#define CreateBOL_doc
#define MkBufferCreateBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ tclmkkernel_MkBufferC_CreateBUF()

static OT_ProcRet tclmkkernel_MkBufferC_CreateBUF ( OtClass_ARGS )
static

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

Definition at line 1209 of file MkBufferC_tcl.c.

1209 {
1212 MK_BUFN val = 0;
1215 MK_BUF retVal = MkBufferCreateBUF (val);
1216 if (retVal == NULL) {
1217 OT_ERROR_CONSTRUCTOR(MkBufferC);
1218 goto error;
1219 }
1220 OT_retObj_SET_BUF(retVal);
1221 goto end;
1222 error:
1224 end:
1226}
#define CreateBUF_doc
#define MkBufferCreateBUF(...)
#define MK_NULL_NO
flag, not allow NULL
#define OT_CHECK_BUFN(val, nullB)

◆ tclmkkernel_MkBufferC_CreateDBL()

static OT_ProcRet tclmkkernel_MkBufferC_CreateDBL ( OtClass_ARGS )
static

Tcl: doc_mk_tcl_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1229 of file MkBufferC_tcl.c.

1229 {
1232 MK_DBL val = 0;
1235 MK_BUF retVal = MkBufferCreateDBL (val);
1236 if (retVal == NULL) {
1237 OT_ERROR_CONSTRUCTOR(MkBufferC);
1238 goto error;
1239 }
1240 OT_retObj_SET_BUF(retVal);
1241 goto end;
1242 error:
1244 end:
1246}
#define OT_CHECK_NF8(val)
#define CreateDBL_doc
#define MkBufferCreateDBL(...)
double MK_DBL
8 byte double data-type

◆ tclmkkernel_MkBufferC_CreateFLT()

static OT_ProcRet tclmkkernel_MkBufferC_CreateFLT ( OtClass_ARGS )
static

Tcl: doc_mk_tcl_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1249 of file MkBufferC_tcl.c.

1249 {
1252 MK_FLT val = 0;
1255 MK_BUF retVal = MkBufferCreateFLT (val);
1256 if (retVal == NULL) {
1257 OT_ERROR_CONSTRUCTOR(MkBufferC);
1258 goto error;
1259 }
1260 OT_retObj_SET_BUF(retVal);
1261 goto end;
1262 error:
1264 end:
1266}
#define OT_CHECK_NF4(val)
#define CreateFLT_doc
#define MkBufferCreateFLT(...)
float MK_FLT
4 byte float data-type

◆ tclmkkernel_MkBufferC_CreateI16()

static OT_ProcRet tclmkkernel_MkBufferC_CreateI16 ( OtClass_ARGS )
static

Tcl: doc_mk_tcl_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1269 of file MkBufferC_tcl.c.

1269 {
1272 MK_I16 val = 0;
1275 MK_BUF retVal = MkBufferCreateI16 (val);
1276 if (retVal == NULL) {
1277 OT_ERROR_CONSTRUCTOR(MkBufferC);
1278 goto error;
1279 }
1280 OT_retObj_SET_BUF(retVal);
1281 goto end;
1282 error:
1284 end:
1286}
#define OT_CHECK_NI2(val)
#define CreateI16_doc
#define MkBufferCreateI16(...)
signed short int MK_I16
2 byte short data-type

◆ tclmkkernel_MkBufferC_CreateI32()

static OT_ProcRet tclmkkernel_MkBufferC_CreateI32 ( OtClass_ARGS )
static

Tcl: doc_mk_tcl_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1289 of file MkBufferC_tcl.c.

1289 {
1292 MK_I32 val = 0;
1295 MK_BUF retVal = MkBufferCreateI32 (val);
1296 if (retVal == NULL) {
1297 OT_ERROR_CONSTRUCTOR(MkBufferC);
1298 goto error;
1299 }
1300 OT_retObj_SET_BUF(retVal);
1301 goto end;
1302 error:
1304 end:
1306}
#define CreateI32_doc
#define MkBufferCreateI32(...)
signed int MK_I32
4 byte integer data-type

◆ tclmkkernel_MkBufferC_CreateI64()

static OT_ProcRet tclmkkernel_MkBufferC_CreateI64 ( OtClass_ARGS )
static

Tcl: doc_mk_tcl_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1309 of file MkBufferC_tcl.c.

1309 {
1312 MK_I64 val = 0;
1315 MK_BUF retVal = MkBufferCreateI64 (val);
1316 if (retVal == NULL) {
1317 OT_ERROR_CONSTRUCTOR(MkBufferC);
1318 goto error;
1319 }
1320 OT_retObj_SET_BUF(retVal);
1321 goto end;
1322 error:
1324 end:
1326}
#define OT_CHECK_NI8(val)
#define CreateI64_doc
#define MkBufferCreateI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ tclmkkernel_MkBufferC_CreateI8()

static OT_ProcRet tclmkkernel_MkBufferC_CreateI8 ( OtClass_ARGS )
static

Tcl: doc_mk_tcl_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1329 of file MkBufferC_tcl.c.

1329 {
1332 MK_I8 val = 0;
1335 MK_BUF retVal = MkBufferCreateI8 ((MK_I8)(val));
1336 if (retVal == NULL) {
1337 OT_ERROR_CONSTRUCTOR(MkBufferC);
1338 goto error;
1339 }
1340 OT_retObj_SET_BUF(retVal);
1341 goto end;
1342 error:
1344 end:
1346}
#define OT_CHECK_NI1(val)
#define CreateI8_doc
#define MkBufferCreateI8(...)
signed char MK_I8
1 byte byte data-type

◆ tclmkkernel_MkBufferC_CreateSTR()

static OT_ProcRet tclmkkernel_MkBufferC_CreateSTR ( OtClass_ARGS )
static

Tcl: doc_mk_tcl_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1349 of file MkBufferC_tcl.c.

1349 {
1352 MK_STRN val = 0;
1355 MK_BUF retVal = MkBufferCreateSTR (val);
1356 if (retVal == NULL) {
1357 OT_ERROR_CONSTRUCTOR(MkBufferC);
1358 goto error;
1359 }
1360 OT_retObj_SET_BUF(retVal);
1361 goto end;
1362 error:
1364 end:
1366}
#define OT_CHECK_STRN(val)
#define CreateSTR_doc
#define MkBufferCreateSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ tclmkkernel_MkBufferC_CreateTLS()

static OT_ProcRet tclmkkernel_MkBufferC_CreateTLS ( OtClass_ARGS )
static

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

Definition at line 1371 of file MkBufferC_tcl.c.

1371 {
1374 MK_STRN tlsName = 0;
1376 MK_BOOL resetB = true;
1379 MK_BUF retVal = MkBufferCreateTLS (tlsName, resetB);
1380 OT_retObj_SET_BUF(retVal);
1381 goto end;
1382 error:
1384 end:
1386}
#define OT_CHECK_bool(val)
#define CreateTLS_doc
#define OT_SETUP_hdl_static
#define MkBufferCreateTLS(...)
bool MK_BOOL
real bool data-type

◆ tclmkkernel_MkBufferC_CTOR()

static OT_ProcRet tclmkkernel_MkBufferC_CTOR ( CONSTR_ARGS )
static

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

Definition at line 1068 of file MkBufferC_tcl.c.

1068 {
1071 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_CONSTR(retVal);
1080 goto end;
1081 error:
1083 end:
1085}
#define OT_SETUP_CONSTRUCTOR_ARGS(...)
#define OT_retObj_CONSTR(x)
#define OT_SETUP_hdl_constr
#define CTOR_doc

◆ tclmkkernel_MkBufferC_Dup()

static OT_ProcRet tclmkkernel_MkBufferC_Dup ( MkBufferC_ARGS )
static

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

Definition at line 1048 of file MkBufferC_tcl.c.

1048 {
1052 MK_BUF retVal = MkBufferDup (hdl);
1053 if (retVal == NULL) {
1054 OT_ERROR_CONSTRUCTOR(MkBufferC);
1055 goto error;
1056 }
1057 OT_retObj_SET_BUF(retVal);
1058 goto end;
1059 error:
1061 end:
1063}
#define OT_SETUP_NOARG(d)
#define OT_SETUP_hdl
#define Dup_doc
#define MkBufferDup(...)

◆ tclmkkernel_MkBufferC_Merge()

static OT_ProcRet tclmkkernel_MkBufferC_Merge ( MkBufferC_ARGS )
static

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

Definition at line 1028 of file MkBufferC_tcl.c.

1028 {
1032 MK_BUF retVal = MkBufferMerge (hdl);
1033 if (retVal == NULL) {
1034 OT_ERROR_CONSTRUCTOR(MkBufferC);
1035 goto error;
1036 }
1037 OT_retObj_SET_BUF(retVal);
1038 goto end;
1039 error:
1041 end:
1043}
#define Merge_doc
#define MkBufferMerge(...)