@@ -126,10 +126,10 @@ inner exceptions. Otherwise the exception message will be concatenated*/
126
126
*****************************************************************************/
127
127
128
128
%pragma(csharp) imclasscode=%{
129
- public class StringArrayMarshal : IDisposable {
130
- public readonly IntPtr[] _ar;
129
+ public class StringArrayMarshal : System. IDisposable {
130
+ public readonly System. IntPtr[] _ar;
131
131
public StringArrayMarshal (string[] ar) {
132
- _ar = new IntPtr[ar.Length ];
132
+ _ar = new System. IntPtr [ar.Length ];
133
133
for (int cx = 0 ; cx < _ar.Length ; cx++) {
134
134
_ar[cx] = System.Runtime .InteropServices .Marshal .StringToHGlobalAnsi (ar[cx]);
135
135
}
@@ -143,7 +143,7 @@ inner exceptions. Otherwise the exception message will be concatenated*/
143
143
}
144
144
%}
145
145
146
- %typemap (imtype, out=" IntPtr" ) char ** " IntPtr[]"
146
+ %typemap (imtype, out=" System. IntPtr" ) char ** " System. IntPtr[]"
147
147
%typemap (cstype) char ** %{string[]%}
148
148
%typemap (in) char ** %{ $1 = ($1_ltype)$input; %}
149
149
%typemap (out) char ** %{ $result = $1 ; %}
@@ -161,25 +161,25 @@ inner exceptions. Otherwise the exception message will be concatenated*/
161
161
/* specializations */
162
162
%typemap (csvarout, excode=SWIGEXCODE2) char ** formatoptions %{
163
163
get {
164
- IntPtr cPtr = $imcall;
165
- IntPtr objPtr;
164
+ System. IntPtr cPtr = $imcall;
165
+ System. IntPtr objPtr;
166
166
string[] ret = new string[this .numformatoptions ];
167
167
for (int cx = 0 ; cx < this .numformatoptions ; cx++) {
168
- objPtr = System.Runtime .InteropServices .Marshal .ReadIntPtr (cPtr, cx * System.Runtime .InteropServices .Marshal .SizeOf (typeof (IntPtr)));
169
- ret[cx]= (objPtr == IntPtr.Zero ) ? null : System.Runtime .InteropServices .Marshal .PtrToStringAnsi (objPtr);
168
+ objPtr = System.Runtime .InteropServices .Marshal .ReadIntPtr (cPtr, cx * System.Runtime .InteropServices .Marshal .SizeOf (typeof (System. IntPtr )));
169
+ ret[cx]= (objPtr == System. IntPtr .Zero ) ? null : System.Runtime .InteropServices .Marshal .PtrToStringAnsi (objPtr);
170
170
}
171
171
$excode
172
172
return ret;
173
173
}
174
174
%}
175
175
%typemap (csvarout, excode=SWIGEXCODE2) char ** values %{
176
176
get {
177
- IntPtr cPtr = $imcall;
178
- IntPtr objPtr;
177
+ System. IntPtr cPtr = $imcall;
178
+ System. IntPtr objPtr;
179
179
string[] ret = new string[this .numvalues ];
180
180
for (int cx = 0 ; cx < this .numvalues ; cx++) {
181
- objPtr = System.Runtime .InteropServices .Marshal .ReadIntPtr (cPtr, cx * System.Runtime .InteropServices .Marshal .SizeOf (typeof (IntPtr)));
182
- ret[cx]= (objPtr == IntPtr.Zero ) ? null : System.Runtime .InteropServices .Marshal .PtrToStringAnsi (objPtr);
181
+ objPtr = System.Runtime .InteropServices .Marshal .ReadIntPtr (cPtr, cx * System.Runtime .InteropServices .Marshal .SizeOf (typeof (System. IntPtr )));
182
+ ret[cx]= (objPtr == System. IntPtr .Zero ) ? null : System.Runtime .InteropServices .Marshal .PtrToStringAnsi (objPtr);
183
183
}
184
184
$excode
185
185
return ret;
@@ -191,29 +191,29 @@ inner exceptions. Otherwise the exception message will be concatenated*/
191
191
*****************************************************************************/
192
192
193
193
%typemap (ctype) outputFormatObj** " void*"
194
- %typemap (imtype) outputFormatObj** " IntPtr"
194
+ %typemap (imtype) outputFormatObj** " System. IntPtr"
195
195
%typemap (cstype) outputFormatObj** " outputFormatObj[]"
196
196
%typemap (out) outputFormatObj** %{ $result = $1 ; %}
197
197
%typemap (csout, excode=SWIGEXCODE) outputFormatObj** {
198
- IntPtr cPtr = $imcall;
199
- IntPtr objPtr;
198
+ System. IntPtr cPtr = $imcall;
199
+ System. IntPtr objPtr;
200
200
outputFormatObj[] ret = new outputFormatObj[this .numoutputformats ];
201
201
for (int cx = 0 ; cx < this .numoutputformats ; cx++) {
202
- objPtr = System.Runtime .InteropServices .Marshal .ReadIntPtr (cPtr, cx * System.Runtime .InteropServices .Marshal .SizeOf (typeof (IntPtr)));
203
- ret[cx] = (objPtr == IntPtr.Zero ) ? null : new outputFormatObj (objPtr, false , ThisOwn_false ());
202
+ objPtr = System.Runtime .InteropServices .Marshal .ReadIntPtr (cPtr, cx * System.Runtime .InteropServices .Marshal .SizeOf (typeof (System. IntPtr )));
203
+ ret[cx] = (objPtr == System. IntPtr .Zero ) ? null : new outputFormatObj (objPtr, false , ThisOwn_false ());
204
204
}
205
205
$excode
206
206
return ret;
207
207
}
208
208
209
209
%typemap (csvarout, excode=SWIGEXCODE2) outputFormatObj** %{
210
210
get {
211
- IntPtr cPtr = $imcall;
212
- IntPtr objPtr;
211
+ System. IntPtr cPtr = $imcall;
212
+ System. IntPtr objPtr;
213
213
outputFormatObj[] ret = new outputFormatObj[this .numoutputformats ];
214
214
for (int cx = 0 ; cx < this .numoutputformats ; cx++) {
215
- objPtr = System.Runtime .InteropServices .Marshal .ReadIntPtr (cPtr, cx * System.Runtime .InteropServices .Marshal .SizeOf (typeof (IntPtr)));
216
- ret[cx] = (objPtr == IntPtr.Zero ) ? null : new outputFormatObj (objPtr, false , ThisOwn_false ());
215
+ objPtr = System.Runtime .InteropServices .Marshal .ReadIntPtr (cPtr, cx * System.Runtime .InteropServices .Marshal .SizeOf (typeof (System. IntPtr )));
216
+ ret[cx] = (objPtr == System. IntPtr .Zero ) ? null : new outputFormatObj (objPtr, false , ThisOwn_false ());
217
217
}
218
218
$excode
219
219
return ret;
@@ -225,7 +225,7 @@ inner exceptions. Otherwise the exception message will be concatenated*/
225
225
*****************************************************************************/
226
226
227
227
%pragma (csharp) imclasscode=%{
228
- public delegate void SWIGByteArrayDelegate (IntPtr data, int size);
228
+ public delegate void SWIGByteArrayDelegate (System. IntPtr data, int size);
229
229
%}
230
230
231
231
%insert (runtime) %{
@@ -241,8 +241,8 @@ static SWIG_CSharpByteArrayHelperCallback SWIG_csharp_bytearray_callback = NULL;
241
241
%typemap (in) SWIG_CSharpByteArrayHelperCallback %{ $1 = ($1_ltype)$input; %}
242
242
%typemap (csin) SWIG_CSharpByteArrayHelperCallback " $csinput"
243
243
244
- %typemap (imtype) (unsigned char * pixels) " IntPtr"
245
- %typemap (cstype) (unsigned char * pixels) " IntPtr"
244
+ %typemap (imtype) (unsigned char * pixels) " System. IntPtr"
245
+ %typemap (cstype) (unsigned char * pixels) " System. IntPtr"
246
246
%typemap (in) (unsigned char * pixels) %{ $1 = ($1_ltype)$input; %}
247
247
%typemap (csin) (unsigned char * pixels) " $csinput"
248
248
@@ -289,7 +289,7 @@ static SWIG_CSharpByteArrayHelperCallback SWIG_csharp_bytearray_callback = NULL;
289
289
%ignore imageObj::write ;
290
290
%typemap (cscode) imageObj, struct imageObj %{
291
291
private byte[] gdbuffer;
292
- private void CreateByteArray (IntPtr data, int size)
292
+ private void CreateByteArray (System. IntPtr data, int size)
293
293
{
294
294
gdbuffer = new byte[size];
295
295
Marshal.Copy (data, gdbuffer, 0 , size);
@@ -313,7 +313,7 @@ static SWIG_CSharpByteArrayHelperCallback SWIG_csharp_bytearray_callback = NULL;
313
313
%csmethodmodifiers processLegendTemplate " private" ;
314
314
%csmethodmodifiers processQueryTemplate " private" ;
315
315
316
- %typemap (csinterfaces) mapObj " IDisposable, System.Runtime.Serialization.ISerializable" ;
316
+ %typemap (csinterfaces) mapObj " System. IDisposable, System.Runtime.Serialization.ISerializable" ;
317
317
%typemap (csattributes) mapObj " [Serializable]"
318
318
%typemap (cscode) mapObj, struct mapObj %{
319
319
public string processTemplate (int bGenerateImages, string[] names, string[] values)
@@ -375,13 +375,13 @@ static SWIG_CSharpByteArrayHelperCallback SWIG_csharp_bytearray_callback = NULL;
375
375
%pragma (csharp) imclasscode=%{
376
376
protected class SWIGByteArrayHelper
377
377
{
378
- public delegate void SWIGByteArrayDelegate (IntPtr data, int size);
378
+ public delegate void SWIGByteArrayDelegate (System. IntPtr data, int size);
379
379
static SWIGByteArrayDelegate bytearrayDelegate = new SWIGByteArrayDelegate(CreateByteArray);
380
380
381
- [DllImport(" $dllimport" , EntryPoint=" SWIGRegisterByteArrayCallback_$module" )]
381
+ [System.Runtime.InteropServices. DllImport(" $dllimport" , System.Runtime.InteropServices. EntryPoint=" SWIGRegisterByteArrayCallback_$module" )]
382
382
public static extern void SWIGRegisterByteArrayCallback_mapscript (SWIGByteArrayDelegate bytearrayDelegate);
383
383
384
- static void CreateByteArray (IntPtr data, int size)
384
+ static void CreateByteArray (System. IntPtr data, int size)
385
385
{
386
386
arraybuffer = new byte[size];
387
387
Marshal.Copy (data, arraybuffer, 0 , size);
@@ -418,13 +418,13 @@ DllExport void SWIGSTDCALL SWIGRegisterByteArrayCallback_$module(SWIG_CSharpByte
418
418
%}
419
419
420
420
/* Typemaps for pattern array */
421
- %typemap (imtype) (double pattern[ANY]) " IntPtr"
421
+ %typemap (imtype) (double pattern[ANY]) " System. IntPtr"
422
422
%typemap (cstype) (double pattern[ANY]) " double[]"
423
423
%typemap (in) (double pattern[ANY]) %{ $1 = ($1_ltype)$input; %}
424
424
%typemap (csin) (double pattern[ANY]) " $csinput"
425
425
%typemap (csvarout, excode=SWIGEXCODE2) (double pattern[ANY]) %{
426
426
get {
427
- IntPtr cPtr = $imcall;
427
+ System. IntPtr cPtr = $imcall;
428
428
double [] ret = new double [patternlength];
429
429
if (patternlength > 0 ) {
430
430
System.Runtime .InteropServices .Marshal .Copy (cPtr, ret, 0 , patternlength);
@@ -433,7 +433,7 @@ DllExport void SWIGSTDCALL SWIGRegisterByteArrayCallback_$module(SWIG_CSharpByte
433
433
return ret;
434
434
}
435
435
set {
436
- IntPtr cPtr = $imcall;
436
+ System. IntPtr cPtr = $imcall;
437
437
if (value.Length > 0 ) {
438
438
System.Runtime .InteropServices .Marshal .Copy (value, 0 , cPtr, value.Length );
439
439
}
@@ -444,14 +444,14 @@ DllExport void SWIGSTDCALL SWIGRegisterByteArrayCallback_$module(SWIG_CSharpByte
444
444
%typemap (csvarin, excode=" " ) (double pattern[ANY]) %{$excode%}
445
445
446
446
/* Typemaps for int array */
447
- %typemap (imtype, out=" IntPtr" ) int *panIndexes " int[]"
447
+ %typemap (imtype, out=" System. IntPtr" ) int *panIndexes " int[]"
448
448
%typemap (cstype) int *panIndexes %{int []%}
449
449
%typemap (in) int *panIndexes %{ $1 = ($1_ltype)$input; %}
450
450
%typemap (csin) (int *panIndexes) " $csinput"
451
451
452
452
/* Typemaps for device handle */
453
- %typemap (imtype) (void * device) %{IntPtr%}
454
- %typemap (cstype) (void * device) %{IntPtr%}
453
+ %typemap (imtype) (void * device) %{ System. IntPtr %}
454
+ %typemap (cstype) (void * device) %{ System. IntPtr %}
455
455
%typemap (in) (void * device) %{ $1 = ($1_ltype)$input; %}
456
456
%typemap (csin) (void * device) " $csinput"
457
457
@@ -474,7 +474,7 @@ DllExport void SWIGSTDCALL SWIGRegisterByteArrayCallback_$module(SWIG_CSharpByte
474
474
%}
475
475
476
476
%typemap (csout, excode=SWIGEXCODE) classObj* getClass, layerObj* getLayer, layerObj *getLayerByName, styleObj* getStyle {
477
- IntPtr cPtr = $imcall;
478
- $csclassname ret = (cPtr == IntPtr.Zero ) ? null : new $csclassname (cPtr, $owner, ThisOwn_false ());$excode
477
+ System. IntPtr cPtr = $imcall;
478
+ $csclassname ret = (cPtr == System. IntPtr .Zero ) ? null : new $csclassname (cPtr, $owner, ThisOwn_false ());$excode
479
479
return ret;
480
480
}
0 commit comments