C# Wrappers using P/Invoke

C# Wrappers using P/Invoke

I have noticed that the ms.net sample contains C# wrapper classes for some of the IPP dll's. These classes contain external method definitions like this example from ipps.cs
Code:

[SuppressUnmanagedCodeSecurityAttribute()]
[DllImport(ipp.sp.libname)] public static extern
IppStatus ippsAddC_32f (  float *pSrc, float val, float *pDst, int len );

It look like it is automatically generated by some tool. Could these wrapper classes be made part of the product distribution instead of being buried inside a sample you have to locate and download? And can Ifind wrappers for all the libraries somewhere. Ippm seems for example to be missing in the sample.

Manually writing all these definitions is very time consuming and error prone, so any help or tool would be appreciated.

Best regards,
hkab

1 contribution / 0 nouveau(x)
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.