theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_py.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for MkBufferC_py.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "MkBufferC_py.c"
 
#define OT_CLASS   (&NS(MkBufferCR))
 
#define OT_CLASS_NAME   "MkBufferC"
 
#define OT_LNG2META(O)
 
#define OT_retObj_CONSTR(mng)
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MkBufferC)
 
#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MkBufferC)
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MkBufferC)
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define SetupRtFromObj_X(hdl)
 
#define SetupRtFromObj_XN(hdl)
 
#define MkBufferCTT   MK(MkKernelThreadState).MkBufferCTT
 
#define ClassInit
 
#define META_CONTEXT_S   MK_ERROR_DEFAULT
 
#define Create_doc   "MkBufferC MkBufferC.Create(?size:int32=0?)"
 
#define Create1024_doc   "MkBufferC MkBufferC.Create1024(?size:int32=0?)"
 
#define Create256_doc   "MkBufferC MkBufferC.Create256(?size:int32=0?)"
 
#define Create64_doc   "MkBufferC MkBufferC.Create64(?size:int32=0?)"
 
#define CreateBIN_doc   "MkBufferC MkBufferC.CreateBIN(val:binary)"
 
#define CreateBOL_doc   "MkBufferC MkBufferC.CreateBOL(val:bool)"
 
#define CreateBUF_doc   "MkBufferC MkBufferC.CreateBUF(val:MkBufferC)"
 
#define CreateDBL_doc   "MkBufferC MkBufferC.CreateDBL(val:double)"
 
#define CreateFLT_doc   "MkBufferC MkBufferC.CreateFLT(val:float)"
 
#define CreateI16_doc   "MkBufferC MkBufferC.CreateI16(val:int16)"
 
#define CreateI32_doc   "MkBufferC MkBufferC.CreateI32(val:int32)"
 
#define CreateI64_doc   "MkBufferC MkBufferC.CreateI64(val:int64)"
 
#define CreateI8_doc   "MkBufferC MkBufferC.CreateI8(val:int8)"
 
#define CreateSTR_doc   "MkBufferC MkBufferC.CreateSTR(val:string)"
 
#define new_doc   "MkBufferC MkBufferC.new(?size:int32=0?)"
 
#define CreateTLS_doc   "MkBufferC MkBufferC.CreateTLS(tlsName:string, ?resetB:bool=true?)"
 
#define GetNull_doc   "MkBufferC MkBufferC.GetNull()"
 
#define HandleResolve_doc   "MkBufferC MkBufferC.HandleResolve(netHdl:MK_HDL)"
 
#define Instances_doc   "MkBufferC MkBufferC.Instances()"
 
#define Merge_doc   "MkBufferC buf.Merge()"
 
#define Dup_doc   "MkBufferC buf.Dup() (const)"
 
#define AppendC_doc   "MkBufferC buf.AppendC(val:string)"
 
#define AppendStringR_doc   "MkBufferC buf.AppendStringR(val:string)"
 
#define Copy_doc   "MkBufferC buf.Copy(srce:MkBufferC) (const)"
 
#define Next_doc   "MkBufferC buf.Next()"
 
#define Prev_doc   "MkBufferC buf.Prev()"
 
#define Reset_doc   "MkBufferC buf.Reset()"
 
#define SetBIN_doc   "MkBufferC buf.SetBIN(val:binary)"
 
#define SetBOL_doc   "MkBufferC buf.SetBOL(val:bool)"
 
#define SetBUF_doc   "MkBufferC buf.SetBUF(val:MkBufferC)"
 
#define SetBinaryR_doc   "MkBufferC buf.SetBinaryR(val:binary)"
 
#define SetDBL_doc   "MkBufferC buf.SetDBL(val:double)"
 
#define SetFLT_doc   "MkBufferC buf.SetFLT(val:float)"
 
#define SetI16_doc   "MkBufferC buf.SetI16(val:int16)"
 
#define SetI32_doc   "MkBufferC buf.SetI32(val:int32)"
 
#define SetI64_doc   "MkBufferC buf.SetI64(val:int64)"
 
#define SetI8_doc   "MkBufferC buf.SetI8(val:int8)"
 
#define SetSTR_doc   "MkBufferC buf.SetSTR(val:string)"
 
#define SetStringR_doc   "MkBufferC buf.SetStringR(val:string)"
 
#define SizeAdd_doc   "MkBufferC buf.SizeAdd(size:int32)"
 
#define SizeNew_doc   "MkBufferC buf.SizeNew(size:int32)"
 
#define Temp_doc   "MkBufferC buf.Temp() (const)"
 
#define GetBFL_doc   "MkBufferListC buf.GetBFL(?val_inout:MkBufferListC=None?) (const)"
 
#define GetBUF_doc   "MkBufferC buf.GetBUF()"
 
#define CastTo_doc   "buf.CastTo(typ:MkTypeE)"
 
#define Cmp_doc   "int32 buf1.Cmp(buf2:MkBufferC) (const)"
 
#define GetType1_doc   "string[1] buf.GetType1() (const)"
 
#define GetType2_doc   "MkTypeE buf.GetType2() (const)"
 
#define GetType3_doc   "string buf.GetType3() (const)"
 
#define IsLocal_doc   "bool buf.IsLocal() (const)"
 
#define LogS_doc   "buf.LogS(?varname:string=\"buf\"?, ?fmtobj:MkObjectC=None?, ?callfunc:string=\"MK_NULL\"?) (const)"
 
#define Pop_doc   "int32 buf.Pop(val:string)"
 
#define Push_doc   "int32 buf.Push(val:string)"
 
#define ResetFull_doc   "buf.ResetFull()"
 
#define GetBIN_doc   "binary buf.GetBIN() (const)"
 
#define GetBOL_doc   "bool buf.GetBOL() (const)"
 
#define GetDBL_doc   "double buf.GetDBL() (const)"
 
#define GetFLT_doc   "float buf.GetFLT() (const)"
 
#define GetI16_doc   "int16 buf.GetI16() (const)"
 
#define GetI32_doc   "int32 buf.GetI32() (const)"
 
#define GetI64_doc   "int64 buf.GetI64() (const)"
 
#define GetI8_doc   "int8 buf.GetI8() (const)"
 
#define GetSTR_doc   "string buf.GetSTR() (const)"
 
#define GetStringR_doc   "string buf.GetStringR() (const)"
 
#define ToObject_doc   "obj buf.ToObject()"
 

Functions

static OT_OBJ_T pymkkernel_MkBufferC_CTOR (MK_RT mkrt, OT_CLS_T type, MK_BUF hdl)
 
static MK_PTR pymkkernel_MkBufferC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void pymkkernel_MkBufferC_selfDelete (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static void pymkkernel_MkBufferC_selfUnlink (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
OT_ProcRet pymkkernel_MkBufferC_ToObject (MkBufferC_ARGS)
  Python: obj buf.ToObject() C-API
return the native language object from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_AppendC (MkBufferC_ARGS)
  Python: MkBufferC buf.AppendC(val:string) C-API
append a single string to a MkBufferC object …
 
static OT_ProcRet pymkkernel_MkBufferC_AppendStringR (MkBufferC_ARGS)
  Python: MkBufferC buf.AppendStringR(val:string) C-API
append a single string to a MkBufferC object …
 
static OT_ProcRet pymkkernel_MkBufferC_Pop (MkBufferC_ARGS)
  Python: int32 buf.Pop(val:string) C-API
delete str from the MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_Push (MkBufferC_ARGS)
  Python: int32 buf.Push(val:string) C-API
add str to the MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_HandleResolve (OtClass_ARGS)
  Python: [static] MkBufferC MkBufferC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a MkBufferC from netHdl or None if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pymkkernel_MkBufferC_HandleGet (MkBufferC_ARGS)
 
static OT_ProcRet pymkkernel_MkBufferC_Next (MkBufferC_ARGS)
  Python: MkBufferC buf.Next() C-API
get next instance from linked-list of MkBufferS type
 
static OT_ProcRet pymkkernel_MkBufferC_Prev (MkBufferC_ARGS)
  Python: MkBufferC buf.Prev() C-API
get previous instance from linked-list of MkBufferS type
 
static OT_ProcRet pymkkernel_MkBufferC_Instances (OtClass_ARGS)
  Python: [static] MkBufferC MkBufferC.Instances() C-API
get head-instance from linked-list of MkBufferS type …
 
static OT_ProcRet pymkkernel_MkBufferC_GetNull (OtClass_ARGS)
  Python: [static] MkBufferC MkBufferC.GetNull() C-API
Null-Slot - return a MkBufferC typed NULL instance …
 
OT_ProcRet pymkkernel_MkBufferC_GetBFL (MkBufferC_ARGS)
  Python: MkBufferListC buf.GetBFL(?val_inout:MkBufferListC=None?) C-API
function to read an MkBufferListC from an MkBufferC object …
 
static OT_ProcRet pymkkernel_MkBufferC_GetBUF (MkBufferC_ARGS)
  Python: MkBufferC buf.GetBUF() C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetBIN (MkBufferC_ARGS)
  Python: doc_mk_py_BufferGetBIN C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetBOL (MkBufferC_ARGS)
  Python: doc_mk_py_BufferGetBOL C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetDBL (MkBufferC_ARGS)
  Python: doc_mk_py_BufferGetDBL C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetFLT (MkBufferC_ARGS)
  Python: doc_mk_py_BufferGetFLT C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetI16 (MkBufferC_ARGS)
  Python: doc_mk_py_BufferGetI16 C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetI32 (MkBufferC_ARGS)
  Python: doc_mk_py_BufferGetI32 C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetI64 (MkBufferC_ARGS)
  Python: doc_mk_py_BufferGetI64 C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetI8 (MkBufferC_ARGS)
  Python: doc_mk_py_BufferGetI8 C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetSTR (MkBufferC_ARGS)
  Python: doc_mk_py_BufferGetSTR C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetStringR (MkBufferC_ARGS)
  Python: string buf.GetStringR() C-API
get a val_out from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetType1 (MkBufferC_ARGS)
  Python: string[1] buf.GetType1() C-API
return the type from a MkBufferC as single character value …
 
static OT_ProcRet pymkkernel_MkBufferC_GetType2 (MkBufferC_ARGS)
  Python: MkTypeE buf.GetType2() C-API
return the MkTypeE from a MkBufferC
 
static OT_ProcRet pymkkernel_MkBufferC_GetType3 (MkBufferC_ARGS)
  Python: string buf.GetType3() C-API
return the type from a MkBufferC as single character string …
 
static OT_ProcRet pymkkernel_MkBufferC_IsLocal (MkBufferC_ARGS)
  Python: bool buf.IsLocal() C-API
Check if the MkBufferC is local (temporary), not local mean global
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pymkkernel_MkBufferC_Log (MkBufferC_ARGS)
 
static OT_ProcRet pymkkernel_MkBufferC_LogS (MkBufferC_ARGS)
  Python: buf.LogS(?varname:string="buf"?, ?fmtobj:MkObjectC=None?, ?callfunc:string="MK_NULL"?) C-API
log the short MkBufferC object data to the MkLogFileC (default: stderr) …
 
static OT_ProcRet pymkkernel_MkBufferC_Copy (MkBufferC_ARGS)
  Python: MkBufferC buf.Copy(srce:MkBufferC) C-API
copy the MkBufferC from srce to dest
 
static OT_ProcRet pymkkernel_MkBufferC_Reset (MkBufferC_ARGS)
  Python: MkBufferC buf.Reset() C-API
reset a MkBufferC to the length zero …
 
static OT_ProcRet pymkkernel_MkBufferC_SizeAdd (MkBufferC_ARGS)
  Python: MkBufferC buf.SizeAdd(size:int32) C-API
add size storage to the buf
 
static OT_ProcRet pymkkernel_MkBufferC_SizeNew (MkBufferC_ARGS)
  Python: MkBufferC buf.SizeNew(size:int32) C-API
alloc min size storage to the buf
 
OT_ProcRet pymkkernel_MkBufferC_Temp (MkBufferC_ARGS)
  Python: MkBufferC buf.Temp() C-API
create a temporary copy of the MkBufferC buf …
 
static OT_ProcRet pymkkernel_MkBufferC_CastTo (MkBufferC_ARGS)
  Python: buf.CastTo(typ:MkTypeE) C-API
change the type of an MkBufferC to type
 
static OT_ProcRet pymkkernel_MkBufferC_Cmp (MkBufferC_ARGS)
  Python: int32 buf1.Cmp(buf2:MkBufferC) C-API
compare TWO MkBufferC objects like strcmp do it for strings …
 
static OT_ProcRet pymkkernel_MkBufferC_ResetFull (MkBufferC_ARGS)
  Python: buf.ResetFull() C-API
reset a MkBufferC to the length zero and free allocated storage…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pymkkernel_MkBufferC_ToString (MkBufferC_ARGS)
 
static OT_ProcRet pymkkernel_MkBufferC_SetBIN (MkBufferC_ARGS)
  Python: doc_mk_py_BufferSetBIN C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetBOL (MkBufferC_ARGS)
  Python: doc_mk_py_BufferSetBOL C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetBUF (MkBufferC_ARGS)
  Python: MkBufferC buf.SetBUF(val:MkBufferC) C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetBinaryR (MkBufferC_ARGS)
  Python: MkBufferC buf.SetBinaryR(val:binary) C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetDBL (MkBufferC_ARGS)
  Python: doc_mk_py_BufferSetDBL C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetFLT (MkBufferC_ARGS)
  Python: doc_mk_py_BufferSetFLT C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetI16 (MkBufferC_ARGS)
  Python: doc_mk_py_BufferSetI16 C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetI32 (MkBufferC_ARGS)
  Python: doc_mk_py_BufferSetI32 C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetI64 (MkBufferC_ARGS)
  Python: doc_mk_py_BufferSetI64 C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetI8 (MkBufferC_ARGS)
  Python: doc_mk_py_BufferSetI8 C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetSTR (MkBufferC_ARGS)
  Python: doc_mk_py_BufferSetSTR C-API
Set the MkBufferC to the val
 
static OT_ProcRet pymkkernel_MkBufferC_SetStringR (MkBufferC_ARGS)
  Python: MkBufferC buf.SetStringR(val:string) C-API
Set the MkBufferC to the val
 
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
 
int pymkkernel_pMkBufferC_Init (MK_RT mkrt, PyObject *m)
 

Variables

static PyMethodDef MkBufferC_Methods []
 
OT_CLASS_TYPE_REF pymkkernel_MkBufferCR
 

Detailed Description

tag: nhi1-release-250425

Definition in file MkBufferC_py.c.

Macro Definition Documentation

◆ AppendC_doc

#define AppendC_doc   "MkBufferC buf.AppendC(val:string)"

Definition at line 128 of file MkBufferC_py.c.

◆ AppendStringR_doc

#define AppendStringR_doc   "MkBufferC buf.AppendStringR(val:string)"

Definition at line 129 of file MkBufferC_py.c.

◆ CastTo_doc

#define CastTo_doc   "buf.CastTo(typ:MkTypeE)"

Definition at line 157 of file MkBufferC_py.c.

◆ ClassInit

#define ClassInit
Value:
/* if not already done, initialize NEW META type */ \
\
/* protect against double call */ \
if (MkBufferCTT->selfCreate == NS(MkBufferC_selfCreate)) return MK_OK; \
\
/* add "selfCreate" and "selfDelete" feature to the META-Class */ \
MkBufferCTT->selfCreate = NS(MkBufferC_selfCreate); \
MkBufferCTT->selfDelete = NS(MkBufferC_selfDelete); \
MkBufferCTT->selfUnlink = NS(MkBufferC_selfUnlink); \
\
if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
NS(MkBufferCR).tp_base = MkBufferC_base; \
OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
} \
OtErrorCheckLng(PyModule_AddObjectRef(m, "MkBufferC", (PyObject *)OT_CLASS)); \
\
/* define the "NULL" object */ \
MkBufferC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));
#define MK(n)
#define NS(n)
#define MkBufferC_MK_NULL
#define MkBufferC_base
#define OT_CLASS
#define MkBufferCTT
#define MkBufferSTT
instance-type as MkTypeS-class-type (cast from MkBufferST into MkTypeS) …
@ MK_OK
(persistent) everything is OK.
#define MK_RT_CALL
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

Definition at line 65 of file MkBufferC_py.c.

65#define ClassInit \
66 /* if not already done, initialize NEW META type */ \
67 if (MkBufferCTT == NULL) MkBufferCTT = MkBufferSTT; \
68 \
69 /* protect against double call */ \
70 if (MkBufferCTT->selfCreate == NS(MkBufferC_selfCreate)) return MK_OK; \
71 \
72 /* add "selfCreate" and "selfDelete" feature to the META-Class */ \
73 MkBufferCTT->selfCreate = NS(MkBufferC_selfCreate); \
74 MkBufferCTT->selfDelete = NS(MkBufferC_selfDelete); \
75 MkBufferCTT->selfUnlink = NS(MkBufferC_selfUnlink); \
76 \
77 if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
78 NS(MkBufferCR).tp_base = MkBufferC_base; \
79 OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
80 } \
81 OtErrorCheckLng(PyModule_AddObjectRef(m, "MkBufferC", (PyObject *)OT_CLASS)); \
82 \
83 /* define the "NULL" object */ \
84 MkBufferC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));

◆ Cmp_doc

#define Cmp_doc   "int32 buf1.Cmp(buf2:MkBufferC) (const)"

Definition at line 158 of file MkBufferC_py.c.

◆ Copy_doc

#define Copy_doc   "MkBufferC buf.Copy(srce:MkBufferC) (const)"

Definition at line 130 of file MkBufferC_py.c.

◆ Create1024_doc

#define Create1024_doc   "MkBufferC MkBufferC.Create1024(?size:int32=0?)"

Definition at line 100 of file MkBufferC_py.c.

◆ Create256_doc

#define Create256_doc   "MkBufferC MkBufferC.Create256(?size:int32=0?)"

Definition at line 101 of file MkBufferC_py.c.

◆ Create64_doc

#define Create64_doc   "MkBufferC MkBufferC.Create64(?size:int32=0?)"

Definition at line 102 of file MkBufferC_py.c.

◆ Create_doc

#define Create_doc   "MkBufferC MkBufferC.Create(?size:int32=0?)"

doc definition

Definition at line 99 of file MkBufferC_py.c.

◆ CreateBIN_doc

#define CreateBIN_doc   "MkBufferC MkBufferC.CreateBIN(val:binary)"

Definition at line 103 of file MkBufferC_py.c.

◆ CreateBOL_doc

#define CreateBOL_doc   "MkBufferC MkBufferC.CreateBOL(val:bool)"

Definition at line 104 of file MkBufferC_py.c.

◆ CreateBUF_doc

#define CreateBUF_doc   "MkBufferC MkBufferC.CreateBUF(val:MkBufferC)"

Definition at line 105 of file MkBufferC_py.c.

◆ CreateDBL_doc

#define CreateDBL_doc   "MkBufferC MkBufferC.CreateDBL(val:double)"

Definition at line 106 of file MkBufferC_py.c.

◆ CreateFLT_doc

#define CreateFLT_doc   "MkBufferC MkBufferC.CreateFLT(val:float)"

Definition at line 107 of file MkBufferC_py.c.

◆ CreateI16_doc

#define CreateI16_doc   "MkBufferC MkBufferC.CreateI16(val:int16)"

Definition at line 108 of file MkBufferC_py.c.

◆ CreateI32_doc

#define CreateI32_doc   "MkBufferC MkBufferC.CreateI32(val:int32)"

Definition at line 109 of file MkBufferC_py.c.

◆ CreateI64_doc

#define CreateI64_doc   "MkBufferC MkBufferC.CreateI64(val:int64)"

Definition at line 110 of file MkBufferC_py.c.

◆ CreateI8_doc

#define CreateI8_doc   "MkBufferC MkBufferC.CreateI8(val:int8)"

Definition at line 111 of file MkBufferC_py.c.

◆ CreateSTR_doc

#define CreateSTR_doc   "MkBufferC MkBufferC.CreateSTR(val:string)"

Definition at line 112 of file MkBufferC_py.c.

◆ CreateTLS_doc

#define CreateTLS_doc   "MkBufferC MkBufferC.CreateTLS(tlsName:string, ?resetB:bool=true?)"

Definition at line 116 of file MkBufferC_py.c.

◆ Dup_doc

#define Dup_doc   "MkBufferC buf.Dup() (const)"

Definition at line 125 of file MkBufferC_py.c.

◆ GetBFL_doc

#define GetBFL_doc   "MkBufferListC buf.GetBFL(?val_inout:MkBufferListC=None?) (const)"

Definition at line 151 of file MkBufferC_py.c.

◆ GetBIN_doc

#define GetBIN_doc   "binary buf.GetBIN() (const)"

Definition at line 172 of file MkBufferC_py.c.

◆ GetBOL_doc

#define GetBOL_doc   "bool buf.GetBOL() (const)"

Definition at line 173 of file MkBufferC_py.c.

◆ GetBUF_doc

#define GetBUF_doc   "MkBufferC buf.GetBUF()"

Definition at line 154 of file MkBufferC_py.c.

◆ GetDBL_doc

#define GetDBL_doc   "double buf.GetDBL() (const)"

Definition at line 174 of file MkBufferC_py.c.

◆ GetFLT_doc

#define GetFLT_doc   "float buf.GetFLT() (const)"

Definition at line 175 of file MkBufferC_py.c.

◆ GetI16_doc

#define GetI16_doc   "int16 buf.GetI16() (const)"

Definition at line 176 of file MkBufferC_py.c.

◆ GetI32_doc

#define GetI32_doc   "int32 buf.GetI32() (const)"

Definition at line 177 of file MkBufferC_py.c.

◆ GetI64_doc

#define GetI64_doc   "int64 buf.GetI64() (const)"

Definition at line 178 of file MkBufferC_py.c.

◆ GetI8_doc

#define GetI8_doc   "int8 buf.GetI8() (const)"

Definition at line 179 of file MkBufferC_py.c.

◆ GetNull_doc

#define GetNull_doc   "MkBufferC MkBufferC.GetNull()"

Definition at line 117 of file MkBufferC_py.c.

◆ GetSTR_doc

#define GetSTR_doc   "string buf.GetSTR() (const)"

Definition at line 180 of file MkBufferC_py.c.

◆ GetStringR_doc

#define GetStringR_doc   "string buf.GetStringR() (const)"

Definition at line 181 of file MkBufferC_py.c.

◆ GetType1_doc

#define GetType1_doc   "string[1] buf.GetType1() (const)"

Definition at line 159 of file MkBufferC_py.c.

◆ GetType2_doc

#define GetType2_doc   "MkTypeE buf.GetType2() (const)"

Definition at line 160 of file MkBufferC_py.c.

◆ GetType3_doc

#define GetType3_doc   "string buf.GetType3() (const)"

Definition at line 161 of file MkBufferC_py.c.

◆ HandleResolve_doc

#define HandleResolve_doc   "MkBufferC MkBufferC.HandleResolve(netHdl:MK_HDL)"

Definition at line 118 of file MkBufferC_py.c.

◆ Instances_doc

#define Instances_doc   "MkBufferC MkBufferC.Instances()"

Definition at line 119 of file MkBufferC_py.c.

◆ IsLocal_doc

#define IsLocal_doc   "bool buf.IsLocal() (const)"

Definition at line 163 of file MkBufferC_py.c.

◆ LogS_doc

#define LogS_doc   "buf.LogS(?varname:string=\"buf\"?, ?fmtobj:MkObjectC=None?, ?callfunc:string=\"MK_NULL\"?) (const)"

Definition at line 165 of file MkBufferC_py.c.

◆ Merge_doc

#define Merge_doc   "MkBufferC buf.Merge()"

Definition at line 122 of file MkBufferC_py.c.

◆ META_CONTEXT_S

#define META_CONTEXT_S   MK_ERROR_DEFAULT

Definition at line 88 of file MkBufferC_py.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "MkBufferC_py.c"

Definition at line 11 of file MkBufferC_py.c.

◆ MkBufferCTT

#define MkBufferCTT   MK(MkKernelThreadState).MkBufferCTT

Definition at line 40 of file MkBufferC_py.c.

◆ new_doc

#define new_doc   "MkBufferC MkBufferC.new(?size:int32=0?)"

Definition at line 113 of file MkBufferC_py.c.

◆ Next_doc

#define Next_doc   "MkBufferC buf.Next()"

Definition at line 131 of file MkBufferC_py.c.

◆ OT_CLASS

#define OT_CLASS   (&NS(MkBufferCR))

Definition at line 16 of file MkBufferC_py.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "MkBufferC"

Definition at line 17 of file MkBufferC_py.c.

◆ OT_LNG2META

#define OT_LNG2META ( O)
Value:
#define VAL2MNG(val)
static MK_BUF MkBuf(MK_MNG mng)
cast a unknown-object into an MkBufferS pointer or NULL if not possible

Definition at line 19 of file MkBufferC_py.c.

◆ OT_retObj_CONSTR

#define OT_retObj_CONSTR ( mng)
Value:
OT_retObj_SET(NS(MkBufferC_CTOR)(MK_RT_CALL (PyTypeObject*)class,mng))
#define OT_retObj_SET(val)

Definition at line 21 of file MkBufferC_py.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MkBufferC)

Definition at line 23 of file MkBufferC_py.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MkBufferC)

Definition at line 24 of file MkBufferC_py.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
struct MkBufferS * MK_BUF
class-shortcut for struct MkBufferS *, all shortcut using the XX_YYY syntax (only for public API) …
#define AllRtSetup_NULL
#define MK_RT_UNUSED

Definition at line 25 of file MkBufferC_py.c.

25#define OT_SETUP_hdl_constr MK_RT_UNUSED AllRtSetup_NULL; \
26 MK_BUF hdl = (MK_BUF) OT_CLASS;

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MkBufferC)

Definition at line 27 of file MkBufferC_py.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
__attribute__((unused)) MK_TYP hdl = MkBufferC##_TT;
MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type...

Definition at line 28 of file MkBufferC_py.c.

28#define OT_SETUP_hdl_static MK_RT_UNUSED AllRtSetup_NULL; \
29 __attribute__((unused)) MK_TYP hdl = MkBufferC##_TT;

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 31 of file MkBufferC_py.c.

◆ Pop_doc

#define Pop_doc   "int32 buf.Pop(val:string)"

Definition at line 166 of file MkBufferC_py.c.

◆ Prev_doc

#define Prev_doc   "MkBufferC buf.Prev()"

Definition at line 132 of file MkBufferC_py.c.

◆ Push_doc

#define Push_doc   "int32 buf.Push(val:string)"

Definition at line 167 of file MkBufferC_py.c.

◆ Reset_doc

#define Reset_doc   "MkBufferC buf.Reset()"

Definition at line 133 of file MkBufferC_py.c.

◆ ResetFull_doc

#define ResetFull_doc   "buf.ResetFull()"

Definition at line 168 of file MkBufferC_py.c.

◆ SetBIN_doc

#define SetBIN_doc   "MkBufferC buf.SetBIN(val:binary)"

Definition at line 134 of file MkBufferC_py.c.

◆ SetBinaryR_doc

#define SetBinaryR_doc   "MkBufferC buf.SetBinaryR(val:binary)"

Definition at line 137 of file MkBufferC_py.c.

◆ SetBOL_doc

#define SetBOL_doc   "MkBufferC buf.SetBOL(val:bool)"

Definition at line 135 of file MkBufferC_py.c.

◆ SetBUF_doc

#define SetBUF_doc   "MkBufferC buf.SetBUF(val:MkBufferC)"

Definition at line 136 of file MkBufferC_py.c.

◆ SetDBL_doc

#define SetDBL_doc   "MkBufferC buf.SetDBL(val:double)"

Definition at line 138 of file MkBufferC_py.c.

◆ SetFLT_doc

#define SetFLT_doc   "MkBufferC buf.SetFLT(val:float)"

Definition at line 139 of file MkBufferC_py.c.

◆ SetI16_doc

#define SetI16_doc   "MkBufferC buf.SetI16(val:int16)"

Definition at line 140 of file MkBufferC_py.c.

◆ SetI32_doc

#define SetI32_doc   "MkBufferC buf.SetI32(val:int32)"

Definition at line 141 of file MkBufferC_py.c.

◆ SetI64_doc

#define SetI64_doc   "MkBufferC buf.SetI64(val:int64)"

Definition at line 142 of file MkBufferC_py.c.

◆ SetI8_doc

#define SetI8_doc   "MkBufferC buf.SetI8(val:int8)"

Definition at line 143 of file MkBufferC_py.c.

◆ SetSTR_doc

#define SetSTR_doc   "MkBufferC buf.SetSTR(val:string)"

Definition at line 144 of file MkBufferC_py.c.

◆ SetStringR_doc

#define SetStringR_doc   "MkBufferC buf.SetStringR(val:string)"

Definition at line 145 of file MkBufferC_py.c.

◆ SetupRtFromObj_X

#define SetupRtFromObj_X ( hdl)
Value:
#define AllRtSetup_X(x)

Definition at line 34 of file MkBufferC_py.c.

◆ SetupRtFromObj_XN

#define SetupRtFromObj_XN ( hdl)
Value:
#define AllRtSetup_XN(x)

Definition at line 35 of file MkBufferC_py.c.

◆ SizeAdd_doc

#define SizeAdd_doc   "MkBufferC buf.SizeAdd(size:int32)"

Definition at line 146 of file MkBufferC_py.c.

◆ SizeNew_doc

#define SizeNew_doc   "MkBufferC buf.SizeNew(size:int32)"

Definition at line 147 of file MkBufferC_py.c.

◆ Temp_doc

#define Temp_doc   "MkBufferC buf.Temp() (const)"

Definition at line 148 of file MkBufferC_py.c.

◆ ToObject_doc

#define ToObject_doc   "obj buf.ToObject()"

Definition at line 182 of file MkBufferC_py.c.

Function Documentation

◆ pymkkernel_MkBufferC_CTOR()

static OT_OBJ_T pymkkernel_MkBufferC_CTOR ( MK_RT mkrt,
OT_CLS_T type,
MK_BUF hdl )
inlinestatic

Definition at line 44 of file MkBufferC_py.c.

44 {
45 return MK(AtomCreate)(MK_RT_CALL type,MkBufferC_X2obj(hdl));
46}
#define MkBufferC_X2obj(x)

◆ pymkkernel_MkBufferC_selfCreate()

static MK_PTR pymkkernel_MkBufferC_selfCreate ( MK_RT mkrt,
MK_OBJ const obj,
MK_PTR const env )
static

Definition at line 51 of file MkBufferC_py.c.

51 {
52 return MK(AtomCreate) (MK_RT_CALL OT_CLASS,obj);
53}

◆ pymkkernel_MkBufferC_selfDelete()

static void pymkkernel_MkBufferC_selfDelete ( MK_RT mkrt,
MK_PTR self,
MK_PTR const env )
static

Definition at line 55 of file MkBufferC_py.c.

55 {
56 MK(AtomDeleteHard) (MK_RT_CALL OT_SELF);
57}
#define OT_SELF

◆ pymkkernel_MkBufferC_selfUnlink()

static void pymkkernel_MkBufferC_selfUnlink ( MK_RT mkrt,
MK_PTR self,
MK_PTR const env )
static

Definition at line 59 of file MkBufferC_py.c.

59 {
60 MkObjectC_Obj *selfO = (MkObjectC_Obj*) self;
61 selfO->hdl = NULL;
62}
PyObject_HEAD MK_OBJ hdl

◆ pymkkernel_pMkBufferC_Init()

int pymkkernel_pMkBufferC_Init ( MK_RT mkrt,
PyObject * m )

Definition at line 1503 of file MkBufferC_py.c.

1504{
1505 ClassInit
1506
1507 MkBuffer64C_TT->selfCreate = NS(MkBufferC_selfCreate) ;
1508 MkBuffer64C_TT->selfDelete = NS(MkBufferC_selfDelete) ;
1509 MkBuffer64C_TT->selfUnlink = NS(MkBufferC_selfUnlink) ;
1510
1511 MkBuffer256C_TT->selfCreate = NS(MkBufferC_selfCreate) ;
1512 MkBuffer256C_TT->selfDelete = NS(MkBufferC_selfDelete) ;
1513 MkBuffer256C_TT->selfUnlink = NS(MkBufferC_selfUnlink) ;
1514
1515 MkBuffer1024C_TT->selfCreate = NS(MkBufferC_selfCreate) ;
1516 MkBuffer1024C_TT->selfDelete = NS(MkBufferC_selfDelete) ;
1517 MkBuffer1024C_TT->selfUnlink = NS(MkBufferC_selfUnlink) ;
1518
1519 return 0;
1520error:
1521 return -1;
1522}
#define ClassInit
#define MkBuffer1024C_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …
#define MkBuffer256C_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …
#define MkBuffer64C_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …

Variable Documentation

◆ MkBufferC_Methods

PyMethodDef MkBufferC_Methods[]
static

Type definition

Definition at line 1387 of file MkBufferC_py.c.

1387 {
1388
1389 // BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
1390
1391 // doc-key: MkBufferC,MkBuffer,sCc
1392 { "Create" , (PyCFunction) NS(MkBufferC_Create) , METH_VARARGS|METH_CLASS , Create_doc },
1393 { "Create1024" , (PyCFunction) NS(MkBufferC_Create1024) , METH_VARARGS|METH_CLASS , Create1024_doc },
1394 { "Create256" , (PyCFunction) NS(MkBufferC_Create256) , METH_VARARGS|METH_CLASS , Create256_doc },
1395 { "Create64" , (PyCFunction) NS(MkBufferC_Create64) , METH_VARARGS|METH_CLASS , Create64_doc },
1396 { "CreateBIN" , (PyCFunction) NS(MkBufferC_CreateBIN) , METH_O|METH_CLASS , CreateBIN_doc },
1397 { "CreateBOL" , (PyCFunction) NS(MkBufferC_CreateBOL) , METH_O|METH_CLASS , CreateBOL_doc },
1398 { "CreateBUF" , (PyCFunction) NS(MkBufferC_CreateBUF) , METH_O|METH_CLASS , CreateBUF_doc },
1399 { "CreateDBL" , (PyCFunction) NS(MkBufferC_CreateDBL) , METH_O|METH_CLASS , CreateDBL_doc },
1400 { "CreateFLT" , (PyCFunction) NS(MkBufferC_CreateFLT) , METH_O|METH_CLASS , CreateFLT_doc },
1401 { "CreateI16" , (PyCFunction) NS(MkBufferC_CreateI16) , METH_O|METH_CLASS , CreateI16_doc },
1402 { "CreateI32" , (PyCFunction) NS(MkBufferC_CreateI32) , METH_O|METH_CLASS , CreateI32_doc },
1403 { "CreateI64" , (PyCFunction) NS(MkBufferC_CreateI64) , METH_O|METH_CLASS , CreateI64_doc },
1404 { "CreateI8" , (PyCFunction) NS(MkBufferC_CreateI8) , METH_O|METH_CLASS , CreateI8_doc },
1405 { "CreateSTR" , (PyCFunction) NS(MkBufferC_CreateSTR) , METH_O|METH_CLASS , CreateSTR_doc },
1406
1407 // doc-key: MkBufferC,MkBuffer,sc_
1408 { "CreateTLS" , (PyCFunction) NS(MkBufferC_CreateTLS) , METH_VARARGS|METH_CLASS , CreateTLS_doc },
1409 { "GetNull" , (PyCFunction) NS(MkBufferC_GetNull) , METH_NOARGS|METH_CLASS , GetNull_doc },
1410 { "HandleResolve" , (PyCFunction) NS(MkBufferC_HandleResolve) , METH_O|METH_CLASS , HandleResolve_doc },
1411 { "Instances" , (PyCFunction) NS(MkBufferC_Instances) , METH_NOARGS|METH_CLASS , Instances_doc },
1412
1413 // END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
1414
1415 // BEGIN-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
1416
1417 // doc-key: MkBufferC,MkBuffer,oC_
1418 { "Merge" , (PyCFunction) NS(MkBufferC_Merge) , METH_NOARGS , Merge_doc },
1419
1420 // doc-key: MkBufferC,MkBuffer,oCx
1421 { "Dup" , (PyCFunction) NS(MkBufferC_Dup) , METH_NOARGS , Dup_doc },
1422
1423 // doc-key: MkBufferC,MkBuffer,oc_
1424 { "AppendC" , (PyCFunction) NS(MkBufferC_AppendC) , METH_O , AppendC_doc },
1425 { "AppendStringR" , (PyCFunction) NS(MkBufferC_AppendStringR) , METH_O , AppendStringR_doc },
1426 { "Copy" , (PyCFunction) NS(MkBufferC_Copy) , METH_O , Copy_doc },
1427 { "Next" , (PyCFunction) NS(MkBufferC_Next) , METH_NOARGS , Next_doc },
1428 { "Prev" , (PyCFunction) NS(MkBufferC_Prev) , METH_NOARGS , Prev_doc },
1429 { "Reset" , (PyCFunction) NS(MkBufferC_Reset) , METH_NOARGS , Reset_doc },
1430 { "SetBIN" , (PyCFunction) NS(MkBufferC_SetBIN) , METH_O , SetBIN_doc },
1431 { "SetBOL" , (PyCFunction) NS(MkBufferC_SetBOL) , METH_O , SetBOL_doc },
1432 { "SetBUF" , (PyCFunction) NS(MkBufferC_SetBUF) , METH_O , SetBUF_doc },
1433 { "SetBinaryR" , (PyCFunction) NS(MkBufferC_SetBinaryR) , METH_O , SetBinaryR_doc },
1434 { "SetDBL" , (PyCFunction) NS(MkBufferC_SetDBL) , METH_O , SetDBL_doc },
1435 { "SetFLT" , (PyCFunction) NS(MkBufferC_SetFLT) , METH_O , SetFLT_doc },
1436 { "SetI16" , (PyCFunction) NS(MkBufferC_SetI16) , METH_O , SetI16_doc },
1437 { "SetI32" , (PyCFunction) NS(MkBufferC_SetI32) , METH_O , SetI32_doc },
1438 { "SetI64" , (PyCFunction) NS(MkBufferC_SetI64) , METH_O , SetI64_doc },
1439 { "SetI8" , (PyCFunction) NS(MkBufferC_SetI8) , METH_O , SetI8_doc },
1440 { "SetSTR" , (PyCFunction) NS(MkBufferC_SetSTR) , METH_O , SetSTR_doc },
1441 { "SetStringR" , (PyCFunction) NS(MkBufferC_SetStringR) , METH_O , SetStringR_doc },
1442 { "SizeAdd" , (PyCFunction) NS(MkBufferC_SizeAdd) , METH_O , SizeAdd_doc },
1443 { "SizeNew" , (PyCFunction) NS(MkBufferC_SizeNew) , METH_O , SizeNew_doc },
1444 { "Temp" , (PyCFunction) NS(MkBufferC_Temp) , METH_NOARGS , Temp_doc },
1445
1446 // doc-key: MkBufferC,MkBuffer,oci
1447 { "GetBFL" , (PyCFunction) NS(MkBufferC_GetBFL) , METH_VARARGS , GetBFL_doc },
1448
1449 // doc-key: MkBufferC,MkBuffer,oco
1450 { "GetBUF" , (PyCFunction) NS(MkBufferC_GetBUF) , METH_NOARGS , GetBUF_doc },
1451
1452 // doc-key: MkBufferC,MkBuffer,om_
1453 { "CastTo" , (PyCFunction) NS(MkBufferC_CastTo) , METH_O , CastTo_doc },
1454 { "Cmp" , (PyCFunction) NS(MkBufferC_Cmp) , METH_O , Cmp_doc },
1455 { "GetType1" , (PyCFunction) NS(MkBufferC_GetType1) , METH_NOARGS , GetType1_doc },
1456 { "GetType2" , (PyCFunction) NS(MkBufferC_GetType2) , METH_NOARGS , GetType2_doc },
1457 { "GetType3" , (PyCFunction) NS(MkBufferC_GetType3) , METH_NOARGS , GetType3_doc },
1458 // skip class-overload: MkBufferHandleGet → HandleGet, NS(MkBufferC_HandleGet)
1459 { "IsLocal" , (PyCFunction) NS(MkBufferC_IsLocal) , METH_NOARGS , IsLocal_doc },
1460 // skip class-overload: MkBufferLog → Log, NS(MkBufferC_Log)
1461 { "LogS" , (PyCFunction) NS(MkBufferC_LogS) , METH_VARARGS , LogS_doc },
1462 { "Pop" , (PyCFunction) NS(MkBufferC_Pop) , METH_O , Pop_doc },
1463 { "Push" , (PyCFunction) NS(MkBufferC_Push) , METH_O , Push_doc },
1464 { "ResetFull" , (PyCFunction) NS(MkBufferC_ResetFull) , METH_NOARGS , ResetFull_doc },
1465 // skip class-overload: MkBufferToString → ToString, NS(MkBufferC_ToString)
1466
1467 // doc-key: MkBufferC,MkBuffer,omo
1468 { "GetBIN" , (PyCFunction) NS(MkBufferC_GetBIN) , METH_NOARGS , GetBIN_doc },
1469 { "GetBOL" , (PyCFunction) NS(MkBufferC_GetBOL) , METH_NOARGS , GetBOL_doc },
1470 { "GetDBL" , (PyCFunction) NS(MkBufferC_GetDBL) , METH_NOARGS , GetDBL_doc },
1471 { "GetFLT" , (PyCFunction) NS(MkBufferC_GetFLT) , METH_NOARGS , GetFLT_doc },
1472 { "GetI16" , (PyCFunction) NS(MkBufferC_GetI16) , METH_NOARGS , GetI16_doc },
1473 { "GetI32" , (PyCFunction) NS(MkBufferC_GetI32) , METH_NOARGS , GetI32_doc },
1474 { "GetI64" , (PyCFunction) NS(MkBufferC_GetI64) , METH_NOARGS , GetI64_doc },
1475 { "GetI8" , (PyCFunction) NS(MkBufferC_GetI8) , METH_NOARGS , GetI8_doc },
1476 { "GetSTR" , (PyCFunction) NS(MkBufferC_GetSTR) , METH_NOARGS , GetSTR_doc },
1477 { "GetStringR" , (PyCFunction) NS(MkBufferC_GetStringR) , METH_NOARGS , GetStringR_doc },
1478 { "ToObject" , (PyCFunction) NS(MkBufferC_ToObject) , METH_NOARGS , ToObject_doc },
1479
1480 // END-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
1481
1482 {NULL, NULL, 0, NULL} /* Sentinel */
1483};
OT_ProcRet NS MkBufferC_ToObject(MkBufferC_ARGS)
#define CreateSTR_doc
#define Instances_doc
#define GetDBL_doc
#define GetBFL_doc
#define Create64_doc
#define GetSTR_doc
#define CreateI64_doc
#define GetType3_doc
#define GetI16_doc
#define ResetFull_doc
#define SetBOL_doc
#define GetI8_doc
#define CreateBUF_doc
#define CreateI8_doc
#define AppendStringR_doc
#define CreateBIN_doc
#define SizeNew_doc
#define Reset_doc
#define GetStringR_doc
#define Create256_doc
#define GetBIN_doc
#define SetI8_doc
#define SetSTR_doc
#define GetBUF_doc
#define Dup_doc
#define CreateFLT_doc
#define SetFLT_doc
#define CreateTLS_doc
#define CastTo_doc
#define Pop_doc
#define GetNull_doc
#define SetI16_doc
#define ToObject_doc
#define Next_doc
#define GetType2_doc
#define SetBinaryR_doc
#define GetBOL_doc
#define SetI64_doc
#define Merge_doc
#define GetI64_doc
#define GetType1_doc
#define Create_doc
#define HandleResolve_doc
#define SizeAdd_doc
#define Prev_doc
#define SetBUF_doc
#define Create1024_doc
#define Push_doc
#define LogS_doc
#define SetI32_doc
#define CreateBOL_doc
#define GetFLT_doc
#define SetBIN_doc
#define CreateDBL_doc
#define Temp_doc
#define CreateI16_doc
#define CreateI32_doc
#define SetStringR_doc
#define GetI32_doc
#define SetDBL_doc
#define Cmp_doc
#define IsLocal_doc
#define AppendC_doc
#define Copy_doc

◆ pymkkernel_MkBufferCR

OT_CLASS_TYPE_REF pymkkernel_MkBufferCR
Initial value:
= {
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "pymkkernel.MkBufferC",
.tp_doc = "PyMkKernel MkBufferC Type",
.tp_basicsize = sizeof(MkBufferC_Obj),
.tp_itemsize = 0,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = MkBufferC_Methods,
.tp_base = NULL
}
struct MkBufferC_Obj MkBufferC_Obj
static PyMethodDef MkBufferC_Methods[]
static OT_ProcRet pymkkernel_MkBufferC_new(CONSTR_ARGS)
Python: [constructor,static] MkBufferC MkBufferC.new(?size:int32=0?) → C-API Constructor - creat...

Public API

Definition at line 1491 of file MkBufferC_py.c.

1491 {
1492 PyVarObject_HEAD_INIT(NULL, 0)
1493 .tp_name = "pymkkernel.MkBufferC",
1494 .tp_doc = "PyMkKernel MkBufferC Type",
1495 .tp_basicsize = sizeof(MkBufferC_Obj),
1496 .tp_itemsize = 0,
1497 .tp_new = NS(MkBufferC_new),
1498 .tp_flags = Py_TPFLAGS_DEFAULT,
1499 .tp_methods = MkBufferC_Methods,
1500 .tp_base = NULL
1501};