From 6747c6a13d402683b567d51f9a99ac2df65c47c0 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 4 Aug 2011 06:21:16 +0000 Subject: Add section on void * pointers for C# git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12769 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Doc/Manual/CSharp.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Doc/Manual') diff --git a/Doc/Manual/CSharp.html b/Doc/Manual/CSharp.html index 6691400b7..968d629c4 100644 --- a/Doc/Manual/CSharp.html +++ b/Doc/Manual/CSharp.html @@ -455,6 +455,24 @@ Windows users can also get the examples working using a Cygwin or MinGW environment for automatic configuration of the example makefiles. Any one of the three C# compilers (Portable.NET, Mono or Microsoft) can be detected from within a Cygwin or Mingw environment if installed in your path. +

18.3 Void pointers

+ + +

+By default SWIG treats void * as any other pointer and hence marshalls it as a type wrapper class called SWIGTYPE_p_void. +If you want to marshall with the .NET System.IntPtr type instead, there is a simple set of named typemaps called +void *VOID_INT_PTR that can be used. +They can be applied like any other named typemaps: +

+ + +
+
+%apply void *VOID_INT_PTR { void * }
+void * f(void *v);
+
+
+

18.3 C# Arrays

-- cgit v1.2.1