[IronPython] Status ctypes and IronPython or Alternative?

Dan Eloff dan.eloff at gmail.com
Tue Dec 2 14:22:44 CET 2008


On Tue, Dec 2, 2008 at 8:09 AM, Uwe Mueller <muwem at web.de> wrote:
> Does anybody know about the status of ctypes for IronPython?

Best we have is in FEPY right now.

> It would be very helpful to have a version that supports function calls to unmanaged code with parameter being a pointer to modifiable byte buffer.
>
> I have tried the version from FEPY on sourceforge.
>
> It implements only some numeric types and does not have byte or byte buffer types.
>
> Also, it does not run on IPY2.0 because IronPython.Runtime.Calls was removed in IPY2.0
>
> Is there some alternative to ctypes without need to get the feet wet (write non-Python code)?
>

No, sorry. PyPy has a pure python ctypes implementation, which would
be the easiest way to get ctypes in IronPython, but it requires
implementing the _rawffi module, which nobody has done yet.

-Dan



More information about the Ironpython-users mailing list