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

tag: nhi1-release-250425 More...

+ Include dependency graph for Sq3BlobC_rb.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "Sq3BlobC_rb.c"
 
#define OT_CLASS   NS(Sq3BlobC)
 
#define OT_CLASS_NAME   "Sq3BlobC"
 
#define OT_LNG2META(O)
 
#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)
 
#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 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 void rbsq3lite_sMark (MK_PTR)
 
static OT_OBJ_T rbsq3lite_LNG_CONSTR (OT_CLS_T clazz, MK_MNG mng, int objc, VALUE *objv)
 
static MK_PTR rbsq3lite_Sq3BlobC_selfCreate (MK_RT mkrt, MK_OBJ obj, MK_PTR envP)
 
static void rbsq3lite_Sq3BlobC_selfDelete (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbsq3lite_Sq3BlobC_selfUnlink (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbsq3lite_sInit (MK_RT mkrt)
 
static OT_ProcRet rbsq3lite_Sq3BlobC_HandleResolve (OtClass_ARGS)
  Ruby: (static) Sq3BlobC Sq3BlobC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a Sq3BlobC from netHdl or nil if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rbsq3lite_Sq3BlobC_HandleGet (Sq3BlobC_ARGS)
 
static OT_ProcRet rbsq3lite_Sq3BlobC_Next (Sq3BlobC_ARGS)
  Ruby: Sq3BlobC blob.Next() C-API
get next instance from linked-list of Sq3BlobS type
 
static OT_ProcRet rbsq3lite_Sq3BlobC_Prev (Sq3BlobC_ARGS)
  Ruby: Sq3BlobC blob.Prev() C-API
get previous instance from linked-list of Sq3BlobS type
 
static OT_ProcRet rbsq3lite_Sq3BlobC_Instances (OtClass_ARGS)
  Ruby: (static) Sq3BlobC Sq3BlobC.Instances() C-API
get head-instance from linked-list of Sq3BlobS type …
 
static OT_ProcRet rbsq3lite_Sq3BlobC_GetNull (OtClass_ARGS)
  Ruby: (static) Sq3BlobC Sq3BlobC.GetNull() C-API
Null-Slot - return a Sq3BlobC typed NULL instance …
 
static OT_ProcRet rbsq3lite_Sq3BlobC_Read (Sq3BlobC_ARGS)
  Ruby: MkBufferC sq3blob.Read(Z_inout:MkBufferC, iOffset:int32) C-API
Read Data From A BLOB Incrementally …
 
static OT_ProcRet rbsq3lite_Sq3BlobC_Bytes (Sq3BlobC_ARGS)
  Ruby: int32 sq3blob.Bytes() C-API
Return The Size Of An Open BLOB …
 
static OT_ProcRet rbsq3lite_Sq3BlobC_Reopen (Sq3BlobC_ARGS)
  Ruby: sq3blob.Reopen(arg1:int64) C-API
Move a BLOB Handle to a New Row …
 
static OT_ProcRet rbsq3lite_Sq3BlobC_Write (Sq3BlobC_ARGS)
  Ruby: sq3blob.Write(z:MkBufferC, iOffset:int32) C-API
Write Data Into A BLOB Incrementally …
 
static OT_ProcRet rbsq3lite_Sq3BlobC_Open (OtClass_ARGS)
  Ruby: (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 rbsq3lite_Sq3BlobC_new (CONSTR_ARGS)
  Ruby: (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 …
 
void rbsq3lite_Sq3BlobC_Init (MK_RT mkrt)
 

Variables

OT_CLS_T OT_CLASS
 
static MK_TYP Sq3BlobCTT = NULL
 
OT_OBJ_T rbsq3lite_Sq3BlobC_MK_NULL = 0
 
static rb_data_type_t rbsq3lite_Sq3BlobC_T
 

Detailed Description

tag: nhi1-release-250425

Definition in file Sq3BlobC_rb.c.

Macro Definition Documentation

◆ Bytes_doc

#define Bytes_doc   "int32 sq3blob.Bytes()"

Definition at line 123 of file Sq3BlobC_rb.c.

◆ GetNull_doc

#define GetNull_doc   "Sq3BlobC Sq3BlobC.GetNull()"

Definition at line 111 of file Sq3BlobC_rb.c.

◆ HandleResolve_doc

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

Definition at line 112 of file Sq3BlobC_rb.c.

◆ Instances_doc

#define Instances_doc   "Sq3BlobC Sq3BlobC.Instances()"

Definition at line 113 of file Sq3BlobC_rb.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "Sq3BlobC_rb.c"

Definition at line 10 of file Sq3BlobC_rb.c.

◆ new_doc

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

Definition at line 108 of file Sq3BlobC_rb.c.

◆ Next_doc

#define Next_doc   "Sq3BlobC blob.Next()"

Definition at line 116 of file Sq3BlobC_rb.c.

◆ Open_doc

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

Definition at line 107 of file Sq3BlobC_rb.c.

◆ OT_CLASS

#define OT_CLASS   NS(Sq3BlobC)

Definition at line 14 of file Sq3BlobC_rb.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "Sq3BlobC"

Definition at line 15 of file Sq3BlobC_rb.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 17 of file Sq3BlobC_rb.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(Sq3BlobC);

Definition at line 87 of file Sq3BlobC_rb.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(Sq3BlobC);

Definition at line 88 of file Sq3BlobC_rb.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
OT_OBJ_T clazz = self; \
#define OT_OBJ_T
#define MkERROR
#define AllRtSetup_NULL
#define Sq3BlobC_type
same as Sq3BlobS but useable in a class-macro as: class##_type …

Definition at line 89 of file Sq3BlobC_rb.c.

89#define OT_SETUP_hdl_constr AllRtSetup_NULL; \
90 OT_OBJ_T clazz = self; \
91 Sq3BlobC_type hdl = (Sq3BlobC_type) &MkERROR;

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(Sq3BlobC);

Definition at line 92 of file Sq3BlobC_rb.c.

◆ OT_SETUP_hdl_static

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

Definition at line 93 of file Sq3BlobC_rb.c.

93#define OT_SETUP_hdl_static AllRtSetup_NULL; \
94 __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 95 of file Sq3BlobC_rb.c.

◆ Prev_doc

#define Prev_doc   "Sq3BlobC blob.Prev()"

Definition at line 117 of file Sq3BlobC_rb.c.

◆ Read_doc

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

Definition at line 120 of file Sq3BlobC_rb.c.

◆ Reopen_doc

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

Definition at line 125 of file Sq3BlobC_rb.c.

◆ S_INIT

#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)

Definition at line 69 of file Sq3BlobC_rb.c.

◆ SetupRtFromObj_X

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

Definition at line 98 of file Sq3BlobC_rb.c.

◆ SetupRtFromObj_XN

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

Definition at line 99 of file Sq3BlobC_rb.c.

◆ Write_doc

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

Definition at line 126 of file Sq3BlobC_rb.c.

Function Documentation

◆ rbsq3lite_LNG_CONSTR()

static OT_OBJ_T rbsq3lite_LNG_CONSTR ( OT_CLS_T clazz,
MK_MNG mng,
int objc,
VALUE * objv )
inlinestatic

Definition at line 46 of file Sq3BlobC_rb.c.

46 {
47 return MK(AtomObjCrt)(clazz,&NS(Sq3BlobC_T),mng,objc,objv);
48}
#define MK(n)
#define NS(n)
#define Sq3BlobC_T
class as MkTypeDefS-class-type (cast from Sq3BlobC_TT into MkTypeS) …

◆ rbsq3lite_sInit()

static void rbsq3lite_sInit ( MK_RT mkrt)
static

Definition at line 70 of file Sq3BlobC_rb.c.

70 {
71
72 // add "selfCreate" and "selfDelete" feature to the MQ-Sq3BlobC-Type
73 Sq3BlobCTT->selfCreate = NS(Sq3BlobC_selfCreate);
74 Sq3BlobCTT->selfDelete = NS(Sq3BlobC_selfDelete);
75 Sq3BlobCTT->selfUnlink = NS(Sq3BlobC_selfUnlink);
76
77 // create the RUBY class
78 OT_CLASS = rb_define_class_under(OT_PKG, "Sq3BlobC", MK_BASE_CLASS);
79 rb_undef_alloc_func(OT_CLASS);
80
81 /* define the "NULL" object */
82 VALUE nullO = TypedData_Wrap_Struct (OT_CLASS, &NS(Sq3BlobC_T), MK_NULL);
83 NS(Sq3BlobC_MK_NULL) = nullO;
85}
#define MK_BASE_CLASS
#define INCR_REF(valP)
#define Sq3BlobC_MK_NULL
#define OT_PKG
static MK_TYP Sq3BlobCTT
Definition Sq3BlobC_rb.c:22
#define OT_CLASS
Definition Sq3BlobC_rb.c:14
#define MK_NULL
MkSelfUnlinkF selfUnlink
MkSelfDeleteF selfDelete
MkSelfCreateF selfCreate

◆ rbsq3lite_sMark()

void rbsq3lite_sMark ( MK_PTR ptr)
static

Definition at line 360 of file Sq3BlobC_rb.c.

360 {
361}

◆ rbsq3lite_Sq3BlobC_Init()

void rbsq3lite_Sq3BlobC_Init ( MK_RT mkrt)

Definition at line 363 of file Sq3BlobC_rb.c.

363 {
364
365 // init type
367 S_INIT;
368
369 // BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
370
371 // doc-key: Sq3BlobC,Sq3Blob,sCo
372 OT_METH_S ( Sq3BlobC, Open, Sq3BlobC_Open )
373 OT_METH_C ( Sq3BlobC, new, Sq3BlobC_new )
374
375 // doc-key: Sq3BlobC,Sq3Blob,sc_
376 OT_METH_O ( Sq3BlobC, GetNull, Sq3BlobC_GetNull )
377 OT_METH_S ( Sq3BlobC, GetNull, Sq3BlobC_GetNull )
378 OT_METH_O ( Sq3BlobC, HandleResolve, Sq3BlobC_HandleResolve )
379 OT_METH_S ( Sq3BlobC, HandleResolve, Sq3BlobC_HandleResolve )
380 OT_METH_O ( Sq3BlobC, Instances, Sq3BlobC_Instances )
381 OT_METH_S ( Sq3BlobC, Instances, Sq3BlobC_Instances )
382
383 // END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
384
385 // BEGIN-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
386
387 // doc-key: Sq3BlobC,Sq3Blob,oc_
388 OT_METH_O ( Sq3BlobC, Next, Sq3BlobC_Next )
389 OT_METH_O ( Sq3BlobC, Prev, Sq3BlobC_Prev )
390
391 // doc-key: Sq3BlobC,Sq3Blob,oci
392 OT_METH_O ( Sq3BlobC, Read, Sq3BlobC_Read )
393
394 // doc-key: Sq3BlobC,Sq3Blob,om_
395 OT_METH_O ( Sq3BlobC, Bytes, Sq3BlobC_Bytes )
396 // skip class-overload: Sq3BlobHandleGet → HandleGet, Sq3BlobC_HandleGet
397 OT_METH_O ( Sq3BlobC, Reopen, Sq3BlobC_Reopen )
398 OT_METH_O ( Sq3BlobC, Write, Sq3BlobC_Write )
399
400 // END-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
401
402}
#define OT_METH_S(c, s, f)
#define OT_METH_O(c, s, f)
#define OT_METH_C(c, s, f)
#define S_INIT
Definition Sq3BlobC_rb.c:69
__thread MK_TYP Sq3BlobC_TT
class as MkTypeDefS-class-type …

◆ rbsq3lite_Sq3BlobC_selfCreate()

static MK_PTR rbsq3lite_Sq3BlobC_selfCreate ( MK_RT mkrt,
MK_OBJ obj,
MK_PTR envP )
static

Definition at line 55 of file Sq3BlobC_rb.c.

55 {
56 OT_OBJ_T self = NS(LNG_CONSTR) (OT_CLASS, obj, 0, NULL);
57 return VAL2PTR(self);
58}
#define VAL2PTR(val)

◆ rbsq3lite_Sq3BlobC_selfDelete()

static void rbsq3lite_Sq3BlobC_selfDelete ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 60 of file Sq3BlobC_rb.c.

60 {
62}
#define PTR2VAL(nat)
#define OT_OBJECT_DELETE_HARD(obj)

◆ rbsq3lite_Sq3BlobC_selfUnlink()

static void rbsq3lite_Sq3BlobC_selfUnlink ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 64 of file Sq3BlobC_rb.c.

64 {
65 OT_OBJ_T self = PTR2VAL(ptr);
66 RDATA(self)->data = NULL;
67}

Variable Documentation

◆ OT_CLASS

OT_CLS_T OT_CLASS

Definition at line 19 of file Sq3BlobC_rb.c.

◆ rbsq3lite_Sq3BlobC_MK_NULL

OT_OBJ_T rbsq3lite_Sq3BlobC_MK_NULL = 0

Definition at line 23 of file Sq3BlobC_rb.c.

◆ rbsq3lite_Sq3BlobC_T

rb_data_type_t rbsq3lite_Sq3BlobC_T
static
Initial value:
= {
"Sq3BlobC",
{
0,
0,
},
NULL,
NULL,
RUBY_TYPED_FREE_IMMEDIATELY
}
static void rbmkkernel_AtomDeleteSoft(MK_MNG)
static void rbsq3lite_sMark(MK_PTR)

Definition at line 29 of file Sq3BlobC_rb.c.

29 {
30 "Sq3BlobC",
31 {
32 NS(sMark),
33 MK(AtomDeleteSoft),
34 0, /* dsize */
35 0, /* reserved[1] */
36 },
37 NULL, /* parent */
38 NULL, /* data */
39 RUBY_TYPED_FREE_IMMEDIATELY
40};

◆ Sq3BlobCTT

MK_TYP Sq3BlobCTT = NULL
static

Definition at line 22 of file Sq3BlobC_rb.c.