theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3BlobC_py.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for Sq3BlobC_py.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "Sq3BlobC_py.c"
 
#define OT_CLASS   (&NS(Sq3BlobCR))
 
#define OT_CLASS_NAME   "Sq3BlobC"
 
#define OT_LNG2META(O)
 
#define OT_retObj_CONSTR(mng)
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(Sq3BlobC)
 
#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(Sq3BlobC)
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(Sq3BlobC)
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define SetupRtFromObj_X(hdl)
 
#define SetupRtFromObj_XN(hdl)
 
#define Sq3BlobCTT   SQ3(Sq3LiteThreadState).Sq3BlobCTT
 
#define ClassInit
 
#define META_CONTEXT_S   MK_ERROR_DEFAULT
 
#define Open_doc   "Sq3BlobC Sq3BlobC.Open(sq3lite:Sq3LiteC, zDb:string, zTable:string, zColumn:string, iRow:int64, flags:int32)"
 
#define new_doc   "Sq3BlobC Sq3BlobC.new(sq3lite:Sq3LiteC, zDb:string, zTable:string, zColumn:string, iRow:int64, flags:int32)"
 
#define GetNull_doc   "Sq3BlobC Sq3BlobC.GetNull()"
 
#define HandleResolve_doc   "Sq3BlobC Sq3BlobC.HandleResolve(netHdl:MK_HDL)"
 
#define Instances_doc   "Sq3BlobC Sq3BlobC.Instances()"
 
#define Next_doc   "Sq3BlobC blob.Next()"
 
#define Prev_doc   "Sq3BlobC blob.Prev()"
 
#define Read_doc   "MkBufferC sq3blob.Read(Z_inout:MkBufferC, iOffset:int32)"
 
#define Bytes_doc   "int32 sq3blob.Bytes()"
 
#define Reopen_doc   "sq3blob.Reopen(arg1:int64)"
 
#define Write_doc   "sq3blob.Write(z:MkBufferC, iOffset:int32)"
 

Functions

static OT_OBJ_T pysq3lite_Sq3BlobC_CTOR (MK_RT mkrt, OT_CLS_T type, SQ3_BLOB hdl)
 
static MK_PTR pysq3lite_Sq3BlobC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void pysq3lite_Sq3BlobC_selfDelete (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static void pysq3lite_Sq3BlobC_selfUnlink (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static OT_ProcRet pysq3lite_Sq3BlobC_HandleResolve (OtClass_ARGS)
  Python: [static] Sq3BlobC Sq3BlobC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a Sq3BlobC from netHdl or None if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pysq3lite_Sq3BlobC_HandleGet (Sq3BlobC_ARGS)
 
static OT_ProcRet pysq3lite_Sq3BlobC_Next (Sq3BlobC_ARGS)
  Python: Sq3BlobC blob.Next() C-API
get next instance from linked-list of Sq3BlobS type
 
static OT_ProcRet pysq3lite_Sq3BlobC_Prev (Sq3BlobC_ARGS)
  Python: Sq3BlobC blob.Prev() C-API
get previous instance from linked-list of Sq3BlobS type
 
static OT_ProcRet pysq3lite_Sq3BlobC_Instances (OtClass_ARGS)
  Python: [static] Sq3BlobC Sq3BlobC.Instances() C-API
get head-instance from linked-list of Sq3BlobS type …
 
static OT_ProcRet pysq3lite_Sq3BlobC_GetNull (OtClass_ARGS)
  Python: [static] Sq3BlobC Sq3BlobC.GetNull() C-API
Null-Slot - return a Sq3BlobC typed NULL instance …
 
static OT_ProcRet pysq3lite_Sq3BlobC_Read (Sq3BlobC_ARGS)
  Python: MkBufferC sq3blob.Read(Z_inout:MkBufferC, iOffset:int32) C-API
Read Data From A BLOB Incrementally …
 
static OT_ProcRet pysq3lite_Sq3BlobC_Bytes (Sq3BlobC_ARGS)
  Python: int32 sq3blob.Bytes() C-API
Return The Size Of An Open BLOB …
 
static OT_ProcRet pysq3lite_Sq3BlobC_Reopen (Sq3BlobC_ARGS)
  Python: sq3blob.Reopen(arg1:int64) C-API
Move a BLOB Handle to a New Row …
 
static OT_ProcRet pysq3lite_Sq3BlobC_Write (Sq3BlobC_ARGS)
  Python: sq3blob.Write(z:MkBufferC, iOffset:int32) C-API
Write Data Into A BLOB Incrementally …
 
static OT_ProcRet pysq3lite_Sq3BlobC_Open (OtClass_ARGS)
  Python: [constructor,static] Sq3BlobC Sq3BlobC.Open(sq3lite:Sq3LiteC, zDb:string, zTable:string, zColumn:string, iRow:int64, flags:int32) C-API
Open A BLOB For Incremental I/O …
 
static OT_ProcRet pysq3lite_Sq3BlobC_new (CONSTR_ARGS)
  Python: [constructor,static] Sq3BlobC Sq3BlobC.new(sq3lite:Sq3LiteC, zDb:string, zTable:string, zColumn:string, iRow:int64, flags:int32) C-API
Open A BLOB For Incremental I/O …
 
int pysq3lite_pSq3BlobC_Init (MK_RT mkrt, PyObject *m)
 

Variables

static PyMethodDef Sq3BlobC_Methods []
 
OT_CLASS_TYPE_REF pysq3lite_Sq3BlobCR
 

Detailed Description

tag: nhi1-release-250425

Definition in file Sq3BlobC_py.c.

Macro Definition Documentation

◆ Bytes_doc

#define Bytes_doc   "int32 sq3blob.Bytes()"

Definition at line 116 of file Sq3BlobC_py.c.

◆ ClassInit

#define ClassInit
Value:
/* if not already done, initialize NEW META type */ \
if (Sq3BlobCTT == NULL) Sq3BlobCTT = Sq3BlobSTT; \
\
/* protect against double call */ \
if (Sq3BlobCTT->selfCreate == NS(Sq3BlobC_selfCreate)) return MK_OK; \
\
/* add "selfCreate" and "selfDelete" feature to the META-Class */ \
Sq3BlobCTT->selfCreate = NS(Sq3BlobC_selfCreate); \
Sq3BlobCTT->selfDelete = NS(Sq3BlobC_selfDelete); \
Sq3BlobCTT->selfUnlink = NS(Sq3BlobC_selfUnlink); \
\
if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
NS(Sq3BlobCR).tp_base = Sq3BlobC_base; \
OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
} \
OtErrorCheckLng(PyModule_AddObjectRef(m, "Sq3BlobC", (PyObject *)OT_CLASS)); \
\
/* define the "NULL" object */ \
Sq3BlobC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));
#define MK(n)
#define Sq3BlobC_MK_NULL
#define Sq3BlobC_base
#define NS(n)
#define OT_CLASS
Definition Sq3BlobC_py.c:16
#define Sq3BlobCTT
Definition Sq3BlobC_py.c:40
MK_OK
#define MK_RT_CALL
#define Sq3BlobSTT
instance-type as MkTypeS-class-type (cast from Sq3BlobST into MkTypeS) …
Struct to represent the data of the Sq3BlobC …

Definition at line 65 of file Sq3BlobC_py.c.

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

◆ GetNull_doc

#define GetNull_doc   "Sq3BlobC Sq3BlobC.GetNull()"

Definition at line 104 of file Sq3BlobC_py.c.

◆ HandleResolve_doc

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

Definition at line 105 of file Sq3BlobC_py.c.

◆ Instances_doc

#define Instances_doc   "Sq3BlobC Sq3BlobC.Instances()"

Definition at line 106 of file Sq3BlobC_py.c.

◆ META_CONTEXT_S

#define META_CONTEXT_S   MK_ERROR_DEFAULT

Definition at line 88 of file Sq3BlobC_py.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "Sq3BlobC_py.c"

Definition at line 11 of file Sq3BlobC_py.c.

◆ new_doc

#define new_doc   "Sq3BlobC Sq3BlobC.new(sq3lite:Sq3LiteC, zDb:string, zTable:string, zColumn:string, iRow:int64, flags:int32)"

Definition at line 101 of file Sq3BlobC_py.c.

◆ Next_doc

#define Next_doc   "Sq3BlobC blob.Next()"

Definition at line 109 of file Sq3BlobC_py.c.

◆ Open_doc

#define Open_doc   "Sq3BlobC Sq3BlobC.Open(sq3lite:Sq3LiteC, zDb:string, zTable:string, zColumn:string, iRow:int64, flags:int32)"

doc definition

Definition at line 100 of file Sq3BlobC_py.c.

◆ OT_CLASS

#define OT_CLASS   (&NS(Sq3BlobCR))

Definition at line 16 of file Sq3BlobC_py.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "Sq3BlobC"

Definition at line 17 of file Sq3BlobC_py.c.

◆ OT_LNG2META

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

Definition at line 19 of file Sq3BlobC_py.c.

◆ OT_retObj_CONSTR

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

Definition at line 21 of file Sq3BlobC_py.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(Sq3BlobC)

Definition at line 23 of file Sq3BlobC_py.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(Sq3BlobC)

Definition at line 24 of file Sq3BlobC_py.c.

◆ OT_SETUP_hdl_constr

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

Definition at line 25 of file Sq3BlobC_py.c.

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

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(Sq3BlobC)

Definition at line 27 of file Sq3BlobC_py.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
__attribute__((unused)) MK_TYP hdl = Sq3BlobC##_TT;

Definition at line 28 of file Sq3BlobC_py.c.

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

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 31 of file Sq3BlobC_py.c.

◆ Prev_doc

#define Prev_doc   "Sq3BlobC blob.Prev()"

Definition at line 110 of file Sq3BlobC_py.c.

◆ Read_doc

#define Read_doc   "MkBufferC sq3blob.Read(Z_inout:MkBufferC, iOffset:int32)"

Definition at line 113 of file Sq3BlobC_py.c.

◆ Reopen_doc

#define Reopen_doc   "sq3blob.Reopen(arg1:int64)"

Definition at line 118 of file Sq3BlobC_py.c.

◆ SetupRtFromObj_X

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

Definition at line 34 of file Sq3BlobC_py.c.

◆ SetupRtFromObj_XN

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

Definition at line 35 of file Sq3BlobC_py.c.

◆ Sq3BlobCTT

#define Sq3BlobCTT   SQ3(Sq3LiteThreadState).Sq3BlobCTT

Definition at line 40 of file Sq3BlobC_py.c.

◆ Write_doc

#define Write_doc   "sq3blob.Write(z:MkBufferC, iOffset:int32)"

Definition at line 119 of file Sq3BlobC_py.c.

Function Documentation

◆ pysq3lite_pSq3BlobC_Init()

int pysq3lite_pSq3BlobC_Init ( MK_RT mkrt,
PyObject * m )

Definition at line 440 of file Sq3BlobC_py.c.

441{
443
444 return 0;
445error:
446 return -1;
447}
#define ClassInit
Definition Sq3BlobC_py.c:65

◆ pysq3lite_Sq3BlobC_CTOR()

static OT_OBJ_T pysq3lite_Sq3BlobC_CTOR ( MK_RT mkrt,
OT_CLS_T type,
SQ3_BLOB hdl )
inlinestatic

Definition at line 44 of file Sq3BlobC_py.c.

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

◆ pysq3lite_Sq3BlobC_selfCreate()

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

Definition at line 51 of file Sq3BlobC_py.c.

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

◆ pysq3lite_Sq3BlobC_selfDelete()

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

Definition at line 55 of file Sq3BlobC_py.c.

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

◆ pysq3lite_Sq3BlobC_selfUnlink()

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

Definition at line 59 of file Sq3BlobC_py.c.

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

Variable Documentation

◆ pysq3lite_Sq3BlobCR

OT_CLASS_TYPE_REF pysq3lite_Sq3BlobCR
Initial value:
= {
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "pymsgque.Sq3BlobC",
.tp_doc = "PyMsgque Sq3BlobC Type",
.tp_basicsize = sizeof(Sq3BlobC_Obj),
.tp_itemsize = 0,
.tp_new = (newfunc) pysq3lite_Sq3BlobC_new ,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = Sq3BlobC_Methods,
.tp_base = NULL
}
struct Sq3BlobC_Obj Sq3BlobC_Obj
static PyMethodDef Sq3BlobC_Methods[]
static OT_ProcRet pysq3lite_Sq3BlobC_new(CONSTR_ARGS)
Python: [constructor,static] Sq3BlobC Sq3BlobC.new(sq3lite:Sq3LiteC, zDb:string, zTable:string,...

Public API

Definition at line 428 of file Sq3BlobC_py.c.

428 {
429 PyVarObject_HEAD_INIT(NULL, 0)
430 .tp_name = "pymsgque.Sq3BlobC",
431 .tp_doc = "PyMsgque Sq3BlobC Type",
432 .tp_basicsize = sizeof(Sq3BlobC_Obj),
433 .tp_itemsize = 0,
434 .tp_new = (newfunc) NS(Sq3BlobC_new),
435 .tp_flags = Py_TPFLAGS_DEFAULT,
436 .tp_methods = Sq3BlobC_Methods,
437 .tp_base = NULL
438};

◆ Sq3BlobC_Methods

PyMethodDef Sq3BlobC_Methods[]
static

Type definition

Definition at line 388 of file Sq3BlobC_py.c.

388 {
389
390 // BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
391
392 // doc-key: Sq3BlobC,Sq3Blob,sCo
393 { "Open" , (PyCFunction) NS(Sq3BlobC_Open) , METH_VARARGS|METH_CLASS , Open_doc },
394
395 // doc-key: Sq3BlobC,Sq3Blob,sc_
396 { "GetNull" , (PyCFunction) NS(Sq3BlobC_GetNull) , METH_NOARGS|METH_CLASS , GetNull_doc },
397 { "HandleResolve" , (PyCFunction) NS(Sq3BlobC_HandleResolve) , METH_O|METH_CLASS , HandleResolve_doc },
398 { "Instances" , (PyCFunction) NS(Sq3BlobC_Instances) , METH_NOARGS|METH_CLASS , Instances_doc },
399
400 // END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
401
402 // BEGIN-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
403
404 // doc-key: Sq3BlobC,Sq3Blob,oc_
405 { "Next" , (PyCFunction) NS(Sq3BlobC_Next) , METH_NOARGS , Next_doc },
406 { "Prev" , (PyCFunction) NS(Sq3BlobC_Prev) , METH_NOARGS , Prev_doc },
407
408 // doc-key: Sq3BlobC,Sq3Blob,oci
409 { "Read" , (PyCFunction) NS(Sq3BlobC_Read) , METH_VARARGS , Read_doc },
410
411 // doc-key: Sq3BlobC,Sq3Blob,om_
412 { "Bytes" , (PyCFunction) NS(Sq3BlobC_Bytes) , METH_NOARGS , Bytes_doc },
413 // skip class-overload: Sq3BlobHandleGet → HandleGet, NS(Sq3BlobC_HandleGet)
414 { "Reopen" , (PyCFunction) NS(Sq3BlobC_Reopen) , METH_O , Reopen_doc },
415 { "Write" , (PyCFunction) NS(Sq3BlobC_Write) , METH_VARARGS , Write_doc },
416
417 // END-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
418
419 {NULL, NULL, 0, NULL} /* Sentinel */
420};
#define Instances_doc
#define Write_doc
#define Read_doc
#define GetNull_doc
#define Next_doc
#define HandleResolve_doc
#define Prev_doc
#define Reopen_doc
#define Bytes_doc
#define Open_doc