theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3ValueC_cs.cs
Go to the documentation of this file.
1
9/* LABEL-INIT */
10
11using csmkkernel;
12
13/* LABEL-START */
14
15using System;
16using System.Reflection;
17using System.Runtime.InteropServices;
18using System.Runtime.CompilerServices;
19using System.Collections.Generic;
20using System.Threading;
21
22namespace cssq3lite {
23
27#if META_IS_OBJECT
28 public partial class Sq3ValueC
29#else
30 public partial class Sq3ValueC : MkObjectC
31#endif
32 {
33 private readonly static ConstructorInfo ctor = getCtor(typeof(Sq3ValueC));
34 private readonly static ThreadLocal<Sq3ValueC> MK_NULL = new ThreadLocal<Sq3ValueC>(() => {
35 return (Sq3ValueC) atomSelfNull(ctor);
36 });
37
38 public static Sq3ValueC Sq3ValueC_ObjNew (IntPtr hdl) {
39 return hdl != IntPtr.Zero ? (Sq3ValueC) atomObjNew(typeof(Sq3ValueC), ctor, hdl) : MK_NULL.Value;
40 }
41
42 private static Sq3ValueC Sq3ValueC_ObjCreate (IntPtr hdl) {
43 return hdl != IntPtr.Zero ? (Sq3ValueC) atomObjCreate(typeof(Sq3ValueC), ctor, hdl) : MK_NULL.Value;
44 }
45
46 private static IntPtr Sq3ValueC_SelfCreate (IntPtr mkrt, IntPtr obj, IntPtr env) {
47 return atomSelfCreate(ctor, obj, env);
48 }
49
50 private static void Sq3ValueC_SelfUnlink (IntPtr mkrt, IntPtr self, IntPtr env) {
51 atomSelfUnlink(self, env);
52 }
53
54 internal static void SetupThreadVAL (IntPtr mkrt) {
55 Sq3.Sq3CsTypeUpdate(mkrt, Sq3CsTypeLookupE.VAL, Sq3ValueC_SelfCreate, Sq3ValueC_SelfUnlink);
56 }
57
58 #if !META_STATIC_OVERWRITE
59
60 static Sq3ValueC() {
61 // M0("Sq3ValueC");
62 Sq3Lite.Setup();
63 SetupThreadVAL(IntPtr.Zero);
64 }
65
66 #endif
67/* LABEL-END */
68
69 internal Sq3ValueC (IntPtr objP) : base(objP) {
70 }
71
72 } // END - class "Sq3ValueC"
73
74 // BEGIN-Sq3ValueC - created by 'cs_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
75
76 public partial class Sq3ValueC {
77
81
82 // doc-key: Sq3ValueC,Sq3ValueC-Class-Export,sc_
83
85 new public static Sq3ValueC HandleResolve (Int32 netHdl) {
86 IntPtr __retVal__L = Sq3.Sq3ValueHandleResolve(IntPtr.Zero, netHdl);
87 return Sq3ValueC.Sq3ValueC_ObjNew(__retVal__L);
88 }
89
90 // doc-key: Sq3ValueC,Sq3ValueC-Class-Export,om_
91
92 // skip class-overload: HandleGet = Sq3ValueHandleGet → MkObjectHandleGet
93
95 // Sq3ValueC_Class_CS_API
96 }
97
98 public partial class Sq3ValueC {
99
103
104 // doc-key: Sq3ValueC,Sq3ValueC-Class-Introspection,oc_
105
107 new public Sq3ValueC Next () {
108 IntPtr __retVal__L = Sq3.Sq3ValueNext(hdl);
109 return Sq3ValueC.Sq3ValueC_ObjNew(__retVal__L);
110 }
111
113 new public Sq3ValueC Prev () {
114 IntPtr __retVal__L = Sq3.Sq3ValuePrev(hdl);
115 return Sq3ValueC.Sq3ValueC_ObjNew(__retVal__L);
116 }
117
118 // doc-key: Sq3ValueC,Sq3ValueC-Class-Introspection,sc_
119
121 new public static Sq3ValueC Instances () {
122 IntPtr __retVal__L = Sq3.Sq3ValueInstances(IntPtr.Zero);
123 return Sq3ValueC.Sq3ValueC_ObjNew(__retVal__L);
124 }
125
127 // Sq3ValueC_Class_CS_API
128 }
129
130 public partial class Sq3ValueC {
131
135
136 // doc-key: Sq3ValueC,Sq3ValueC-Class-Misc,sc_
137
139 new public static Sq3ValueC GetNull () {
140 IntPtr __retVal__L = Sq3.Sq3ValueGetNull();
141 return Sq3ValueC.Sq3ValueC_ObjNew(__retVal__L);
142 }
143
145 // Sq3ValueC_Class_CS_API
146 }
147
148 public partial class Sq3ValueC {
149
153
154 // doc-key: Sq3ValueC,Sq3ValueC-Info,om_
155
157 public Sq3TextE Bytes () {
158 Sq3TextE __retVal__L = Sq3.Sq3ValueBytes(hdl);
159 return __retVal__L;
160 }
161
163 public Sq3TextE Encoding () {
164 Sq3TextE __retVal__L = Sq3.Sq3ValueEncoding(hdl);
165 return __retVal__L;
166 }
167
169 public bool FromBind () {
170 bool __retVal__L = Sq3.Sq3ValueFromBind(hdl);
171 return __retVal__L;
172 }
173
174 // skip class-overload: Log = Sq3ValueLog → MkObjectLog
175
177 public bool NoChange () {
178 bool __retVal__L = Sq3.Sq3ValueNoChange(hdl);
179 return __retVal__L;
180 }
181
184 Sq3TypeE __retVal__L = Sq3.Sq3ValueNumericType(hdl);
185 return __retVal__L;
186 }
187
189 public int SubType () {
190 Int32 __retVal__L = Sq3.Sq3ValueSubType(hdl);
191 return __retVal__L;
192 }
193
195 public Sq3TypeE Type () {
196 Sq3TypeE __retVal__L = Sq3.Sq3ValueType(hdl);
197 return __retVal__L;
198 }
199
201 // Sq3ValueC_Info_CS_API
202 }
203
204 public partial class Sq3ValueC {
205
209
210 // doc-key: Sq3ValueC,Sq3ValueC-TOR,oCx
211
213 public Sq3ValueC Dup () {
214 IntPtr __retVal__L = Sq3.Sq3ValueDup(hdl);
215 if (__retVal__L == IntPtr.Zero) {
216 throw new MkInitError("Sq3ValueC.Dup");
217 }
218 return Sq3ValueC.Sq3ValueC_ObjCreate(__retVal__L);
219 }
220
222 // Sq3ValueC_TOR_CS_API
223 }
224
225 public partial class Sq3ValueC {
226
230
231 // doc-key: Sq3ValueC,Sq3ValueC-Types,oc_
232
234 public MkBufferC BUF () {
235 IntPtr __retVal__L = Sq3.Sq3ValueBUF(mkrt, hdl);
236 return MkBufferC.MkBufferC_ObjNew(__retVal__L);
237 }
238
240 public MkBufferC Blob () {
241 IntPtr __retVal__L = Sq3.Sq3ValueBlob(mkrt, hdl);
242 return MkBufferC.MkBufferC_ObjNew(__retVal__L);
243 }
244
245 // doc-key: Sq3ValueC,Sq3ValueC-Types,om_
246
248 public byte[] BinaryR () {
249 Mk.MkBinaryR __retVal__L = Sq3.Sq3ValueBinaryR(hdl);
250 int __retVal__L_size = (int) __retVal__L.size;
251 byte[] ____retVal__L__S = new byte[__retVal__L_size];
252 Marshal.Copy(__retVal__L.data,____retVal__L__S,0,(int)__retVal__L_size);
253 return ____retVal__L__S;
254 }
255
257 public double Double () {
258 Double __retVal__L = Sq3.Sq3ValueDouble(hdl);
259 return __retVal__L;
260 }
261
263 public int Int () {
264 Int32 __retVal__L = Sq3.Sq3ValueInt(hdl);
265 return __retVal__L;
266 }
267
269 public long Int64 () {
270 Int64 __retVal__L = Sq3.Sq3ValueInt64(hdl);
271 return __retVal__L;
272 }
273
275 public string StringR () {
276 Mk.MkStringR __retVal__L = Sq3.Sq3ValueStringR(hdl);
277 return Marshal.PtrToStringAnsi(__retVal__L.ptr,(int)__retVal__L.len);
278 }
279
281 public string Text () {
282 IntPtr __retVal__L = Sq3.Sq3ValueText(hdl);
283 return Marshal.PtrToStringAnsi(__retVal__L);
284 }
285
287 // Sq3ValueC_Types_CS_API
288 }
289
290 public partial class Sq3ValueC {
291
295
296 // doc-key: Sq3ValueC,Sq3ValueC-Vtab,oco
297
300 IntPtr ppOut;
301 MkErrorE errVal = Sq3.Sq3ValueVtabInFirst(hdl, out ppOut);
302 MkErrorC.Check(hdl, errVal);
303 return Sq3ValueC.Sq3ValueC_ObjNew(ppOut);
304 }
305
308 IntPtr ppOut;
309 MkErrorE errVal = Sq3.Sq3ValueVtabInNext(hdl, out ppOut);
310 MkErrorC.Check(hdl, errVal);
311 return Sq3ValueC.Sq3ValueC_ObjNew(ppOut);
312 }
313
315 // Sq3ValueC_Vtab_CS_API
316 }
317
318 // END-Sq3ValueC - created by 'cs_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
319
320} // END - namespace "cssq3lite"
static MkBufferC MkBufferC_ObjNew(IntPtr hdl)
static void Check(IntPtr ctx, MkErrorE err)
static object atomObjNew(Type type, ConstructorInfo ctor, IntPtr obj)
static object atomObjCreate(Type type, ConstructorInfo ctor, IntPtr obj)
static void atomSelfUnlink(IntPtr self, IntPtr env)
static object atomSelfNull(ConstructorInfo ctor)
static ConstructorInfo getCtor(Type type)
static IntPtr atomSelfCreate(ConstructorInfo ctor, IntPtr obj, IntPtr env)
Sq3ValueC - the class known as sq3val or Value define by Sq3ValueS …
static Sq3ValueC Sq3ValueC_ObjNew(IntPtr hdl)
#define MK_NULL
MkErrorE
static SQ3_LITE Sq3Lite(MK_MNG mng)
cast a unknown-object into an Sq3LiteS pointer or NULL if not possible
new Sq3ValueC Next()
C#: Sq3ValueC val.Next() → C-API get next instance from linked-list of Sq3ValueS type
new static Sq3ValueC Instances()
C#: [static] Sq3ValueC Sq3ValueC.Instances() → C-API get head-instance from linked-list of Sq3Va...
new Sq3ValueC Prev()
C#: Sq3ValueC val.Prev() → C-API get previous instance from linked-list of Sq3ValueS type
new static Sq3ValueC HandleResolve(Int32 netHdl)
C#: [static] Sq3ValueC Sq3ValueC.HandleResolve(Int32 netHdl) → C-API Handle-Resolve-Slot - retur...
new static Sq3ValueC GetNull()
C#: [static] Sq3ValueC Sq3ValueC.GetNull() → C-API Null-Slot - return a Sq3ValueC typed NULL ins...
Sq3TypeE NumericType()
C#: Sq3TypeE sq3val.NumericType() → C-API Obtaining SQL Values …
int SubType()
C#: int sq3val.SubType() → C-API Finding The Subtype Of SQL Values …
bool NoChange()
C#: bool sq3val.NoChange() → C-API Obtaining SQL Values …
Sq3TextE Encoding()
C#: Sq3TextE sq3val.Encoding() → C-API Report the internal text encoding state of an sqlite3_va...
bool FromBind()
C#: bool sq3val.FromBind() → C-API Obtaining SQL Values …
Sq3TypeE Type()
C#: Sq3TypeE sq3val.Type() → C-API Obtaining SQL Values …
Sq3TextE Bytes()
C#: Sq3TextE sq3val.Bytes() → C-API Obtaining SQL Values …
Sq3ValueC Dup()
C#: [constructor] Sq3ValueC sq3val.Dup() → C-API Copy And Free SQL Values …
string StringR()
C#: string sq3val.StringR() → C-API Obtaining SQL Values …
byte[] BinaryR()
C#: byte[] sq3val.BinaryR() → C-API Obtaining SQL Values …
MkBufferC BUF()
C#: MkBufferC val.BUF() → C-API Obtaining a MkBufferC value…
long Int64()
C#: long sq3val.Int64() → C-API Obtaining SQL Values …
MkBufferC Blob()
C#: MkBufferC sq3val.Blob() → C-API Obtaining SQL Values …
int Int()
C#: int sq3val.Int() → C-API Obtaining SQL Values …
double Double()
C#: double sq3val.Double() → C-API Obtaining SQL Values …
string Text()
C#: string sq3val.Text() → C-API Obtaining SQL Values …
Sq3ValueC VtabInFirst()
C#: Sq3ValueC pVal.VtabInFirst() → C-API Find all elements on the right-hand side of an IN cons...
Sq3ValueC VtabInNext()
C#: Sq3ValueC pVal.VtabInNext() → C-API Find all elements on the right-hand side of an IN const...
Sq3TextE
→ C-API: Sq3TextE → C-API: Sq3TextE
Sq3TypeE
→ C-API: Sq3TypeE → C-API: Sq3TypeE