Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdBlob.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdBlob : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdBlob(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdBlob obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdBlob() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public bool rdBool() {
52 bool ret = GlobalsPINVOKE.OdBlob_rdBool(swigCPtr);
54 return ret;
55 }
56
57 public void wrBool(bool arg0) {
58 GlobalsPINVOKE.OdBlob_wrBool(swigCPtr, arg0);
60 }
61
62 public sbyte rdInt8() {
63// test csout
64 /*SIMPLETYPE*/
65 sbyte ret = GlobalsPINVOKE.OdBlob_rdInt8(swigCPtr);
67 return ret;
68 }
69
70 public void wrInt8(sbyte /*SIMPLETYPE*/ arg0) {
71 GlobalsPINVOKE.OdBlob_wrInt8(swigCPtr, arg0 /*SIMPLETYPE*/);
73 }
74
75 public Int16 rdInt16() {
76// test csout
77 /*SIMPLETYPE*/
78 Int16 ret = GlobalsPINVOKE.OdBlob_rdInt16(swigCPtr);
80 return ret;
81 }
82
83 public void wrInt16(Int16 /*SIMPLETYPE*/ arg0) {
84 GlobalsPINVOKE.OdBlob_wrInt16(swigCPtr, arg0 /*SIMPLETYPE*/);
86 }
87
88 public Int32 rdInt32() {
89// test csout
90 /*SIMPLETYPE*/
91 Int32 ret = GlobalsPINVOKE.OdBlob_rdInt32(swigCPtr);
93 return ret;
94 }
95
96 public void wrInt32(Int32 /*SIMPLETYPE*/ arg0) {
97 GlobalsPINVOKE.OdBlob_wrInt32(swigCPtr, arg0 /*SIMPLETYPE*/);
99 }
100
101 public Int64 rdInt64() {
102// test csout
103 /*SIMPLETYPE*/
104 Int64 ret = GlobalsPINVOKE.OdBlob_rdInt64(swigCPtr);
106 return ret;
107 }
108
109 public void wrInt64(Int64 /*SIMPLETYPE*/ arg0) {
110 GlobalsPINVOKE.OdBlob_wrInt64(swigCPtr, arg0 /*SIMPLETYPE*/);
112 }
113
114 public double rdDouble() {
115 double ret = GlobalsPINVOKE.OdBlob_rdDouble(swigCPtr);
117 return ret;
118 }
119
120 public void wrDouble(double arg0) {
121 GlobalsPINVOKE.OdBlob_wrDouble(swigCPtr, arg0);
123 }
124
126 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdBlob_rdPoint3d(swigCPtr), true);
128 return ret;
129 }
130
131 public void wrPoint3d(OdGePoint3d arg0) {
134 }
135
139 return ret;
140 }
141
142 public void wrVector3d(OdGeVector3d arg0) {
145 }
146
147 public IntPtr rdAddress() {
148// test csout
149 /*SIMPLETYPE*/
150 IntPtr ret = GlobalsPINVOKE.OdBlob_rdAddress(swigCPtr);
152 return ret;
153 }
154
155 public void wrAddress(IntPtr /*SIMPLETYPE*/ arg0) {
156 GlobalsPINVOKE.OdBlob_wrAddress(swigCPtr, arg0 /*SIMPLETYPE*/);
158 }
159
160 public void rdBytes(IntPtr /*SIMPLETYPE*/ buf, UInt32 /*SIMPLETYPE*/ len) {
161 GlobalsPINVOKE.OdBlob_rdBytes(swigCPtr, buf /*SIMPLETYPE*/, len /*SIMPLETYPE*/);
163 }
164
165 public void wrBytes(IntPtr /*SIMPLETYPE*/ buf, UInt32 /*SIMPLETYPE*/ len) {
166 GlobalsPINVOKE.OdBlob_wrBytes(swigCPtr, buf /*SIMPLETYPE*/, len /*SIMPLETYPE*/);
168 }
169
170 public void rdPoints2d(OdGePoint2d points, UInt32 /*SIMPLETYPE*/ num) {
171 GlobalsPINVOKE.OdBlob_rdPoints2d(swigCPtr, OdGePoint2d.getCPtr(points), num /*SIMPLETYPE*/);
173 }
174
175 public void wrPoints2d(OdGePoint2d[] /*ENDPOINTS2D_OVERRIDES*/ points, UInt32 /*SIMPLETYPE*/ num) {
176IntPtr p_points=Teigha.Core.Helpers.MarshalPoint2dPair(points);
177 try {
178 GlobalsPINVOKE.OdBlob_wrPoints2d(swigCPtr, p_points, num /*SIMPLETYPE*/);
180 } finally {
181if (p_points != IntPtr.Zero) Marshal.FreeCoTaskMem(p_points);
182 }
183 }
184
185 public void rdPoints3d(OdGePoint3d points, UInt32 /*SIMPLETYPE*/ num) {
186 GlobalsPINVOKE.OdBlob_rdPoints3d(swigCPtr, OdGePoint3d.getCPtr(points), num /*SIMPLETYPE*/);
188 }
189
190 public void wrPoints3d(OdGePoint3d points, UInt32 /*SIMPLETYPE*/ num) {
191 GlobalsPINVOKE.OdBlob_wrPoints3d(swigCPtr, OdGePoint3d.getCPtr(points), num /*SIMPLETYPE*/);
193 }
194
195 public void wrDoubles(double[] /*SIMPLEFIXED_ARRAY*/ doubles) {
196IntPtr p_doubles=Teigha.Core.Helpers.MarshaldoubleFixedArray(doubles);
197 try {
198 GlobalsPINVOKE.OdBlob_wrDoubles(swigCPtr, p_doubles);
200 } finally {
201Marshal.FreeCoTaskMem(p_doubles);
202 }
203 }
204
205 public void rdDoubles(double[] /*SIMPLEFIXED_ARRAY*/ doubles) {
206IntPtr p_doubles=Teigha.Core.Helpers.MarshaldoubleFixedArray(doubles);
207 try {
208 GlobalsPINVOKE.OdBlob_rdDoubles(swigCPtr, p_doubles);
210 } finally {
211Marshal.FreeCoTaskMem(p_doubles);
212 }
213 }
214
215 public void rdObjectIds(OdDbStub pRes, UInt32 /*SIMPLETYPE*/ num) {
216 GlobalsPINVOKE.OdBlob_rdObjectIds(swigCPtr, OdDbStub.getCPtr(pRes).Handle, num /*SIMPLETYPE*/);
218 }
219
221 global::System.IntPtr cPtr = GlobalsPINVOKE.OdBlob_rdObjectId(swigCPtr);
222 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
224 return ret;
225 }
226
227 public void wrObjectId(OdDbStub id) {
230 }
231
232 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
233 string ret = GlobalsPINVOKE.OdBlob_getRealClassName(ptr /*SIMPLETYPE*/);
235 return ret;
236 }
237
238}
239
240}
static global::System.Exception Retrieve()
static sbyte OdBlob_rdInt8(HandleRef jarg1)
static void OdBlob_wrDoubles(HandleRef jarg1, IntPtr jarg2)
static string OdBlob_getRealClassName(IntPtr jarg1)
static void OdBlob_wrInt16(HandleRef jarg1, Int16 jarg2)
static void OdBlob_wrBool(HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdBlob_rdVector3d(HandleRef jarg1)
static void OdBlob_wrAddress(HandleRef jarg1, IntPtr jarg2)
static void OdBlob_wrInt64(HandleRef jarg1, Int64 jarg2)
static Int16 OdBlob_rdInt16(HandleRef jarg1)
static void OdBlob_rdPoints3d(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3)
static Int64 OdBlob_rdInt64(HandleRef jarg1)
static void OdBlob_wrInt32(HandleRef jarg1, Int32 jarg2)
static void OdBlob_rdObjectIds(HandleRef jarg1, IntPtr jarg2, UInt32 jarg3)
static void OdBlob_wrVector3d(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdBlob_wrPoints2d(HandleRef jarg1, IntPtr jarg2, UInt32 jarg3)
static void OdBlob_rdBytes(HandleRef jarg1, IntPtr jarg2, UInt32 jarg3)
static bool OdBlob_rdBool(HandleRef jarg1)
static Int32 OdBlob_rdInt32(HandleRef jarg1)
static double OdBlob_rdDouble(HandleRef jarg1)
static void OdBlob_wrObjectId(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdBlob_wrPoints3d(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3)
static global::System.IntPtr OdBlob_rdObjectId(HandleRef jarg1)
static global::System.IntPtr OdBlob_rdPoint3d(HandleRef jarg1)
static void delete_OdBlob(HandleRef jarg1)
static void OdBlob_wrPoint3d(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdBlob_wrBytes(HandleRef jarg1, IntPtr jarg2, UInt32 jarg3)
static void OdBlob_rdPoints2d(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3)
static void OdBlob_wrInt8(HandleRef jarg1, sbyte jarg2)
static void OdBlob_wrDouble(HandleRef jarg1, double jarg2)
static IntPtr OdBlob_rdAddress(HandleRef jarg1)
static void OdBlob_rdDoubles(HandleRef jarg1, IntPtr jarg2)
void wrDouble(double arg0)
Definition: OdBlob.cs:120
void wrPoint3d(OdGePoint3d arg0)
Definition: OdBlob.cs:131
virtual void Dispose(bool disposing)
Definition: OdBlob.cs:39
void wrBool(bool arg0)
Definition: OdBlob.cs:57
void Dispose()
Definition: OdBlob.cs:34
void wrObjectId(OdDbStub id)
Definition: OdBlob.cs:227
Int32 rdInt32()
Definition: OdBlob.cs:88
bool swigCMemOwn
Definition: OdBlob.cs:19
void wrInt8(sbyte arg0)
Definition: OdBlob.cs:70
void wrInt16(Int16 arg0)
Definition: OdBlob.cs:83
OdBlob(IntPtr cPtr, bool cMemoryOwn)
Definition: OdBlob.cs:21
void wrVector3d(OdGeVector3d arg0)
Definition: OdBlob.cs:142
void rdPoints2d(OdGePoint2d points, UInt32 num)
Definition: OdBlob.cs:170
OdGeVector3d rdVector3d()
Definition: OdBlob.cs:136
void wrBytes(IntPtr buf, UInt32 len)
Definition: OdBlob.cs:165
void wrInt64(Int64 arg0)
Definition: OdBlob.cs:109
void wrAddress(IntPtr arg0)
Definition: OdBlob.cs:155
void wrPoints3d(OdGePoint3d points, UInt32 num)
Definition: OdBlob.cs:190
void rdPoints3d(OdGePoint3d points, UInt32 num)
Definition: OdBlob.cs:185
OdDbStub rdObjectId()
Definition: OdBlob.cs:220
sbyte rdInt8()
Definition: OdBlob.cs:62
void wrDoubles(double[] doubles)
Definition: OdBlob.cs:195
OdGePoint3d rdPoint3d()
Definition: OdBlob.cs:125
void wrPoints2d(OdGePoint2d[] points, UInt32 num)
Definition: OdBlob.cs:175
Int16 rdInt16()
Definition: OdBlob.cs:75
void rdBytes(IntPtr buf, UInt32 len)
Definition: OdBlob.cs:160
bool rdBool()
Definition: OdBlob.cs:51
IntPtr rdAddress()
Definition: OdBlob.cs:147
static string getRealClassName(IntPtr ptr)
Definition: OdBlob.cs:232
Int64 rdInt64()
Definition: OdBlob.cs:101
double rdDouble()
Definition: OdBlob.cs:114
void rdObjectIds(OdDbStub pRes, UInt32 num)
Definition: OdBlob.cs:215
void rdDoubles(double[] doubles)
Definition: OdBlob.cs:205
void wrInt32(Int32 arg0)
Definition: OdBlob.cs:96
static HandleRef getCPtr(OdBlob obj)
Definition: OdBlob.cs:26
static HandleRef getCPtr(OdDbStub obj)
Definition: OdDbStub.cs:26
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26